Reason
  • Docs
  • Try
  • API
  • Community
  • Blog
  • Languages iconEnglish
    • 日本語
    • Deutsch
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • Українська
    • 中文
    • 繁體中文
    • Help Translate
  • GitHub

Module StdLabels

module StdLabels: sig .. end

Standard labeled libraries.

This meta-module provides versions of the StdLabels.Array, StdLabels.Bytes, StdLabels.List and StdLabels.String modules where function arguments are systematically labeled. It is intended to be opened at the top of source files, as shown below.

     open StdLabels

     let to_upper = String.map ~f:Char.uppercase_ascii
     let seq len = List.init ~f:(fun i -> i) ~len
     let everything = Array.create_matrix ~dimx:42 ~dimy:42 42
   

module Array: ArrayLabels
module Bytes: BytesLabels
module List: ListLabels
module String: StringLabels