1StdLabels(3)                     OCaml library                    StdLabels(3)
2
3
4

NAME

6       StdLabels - Standard labeled libraries.
7

Module

9       Module   StdLabels
10

Documentation

12       Module StdLabels
13        : sig end
14
15
16       Standard labeled libraries.
17
18       This  meta-module  provides  versions  of  the StdLabels.Array , StdLa‐
19       bels.Bytes , StdLabels.List and StdLabels.String modules where function
20       arguments  are  systematically labeled.  It is intended to be opened at
21       the top of source files, as shown below.
22
23
24            open StdLabels
25
26            let to_upper = String.map ~f:Char.uppercase_ascii
27            let seq len = List.init ~f:(function i -> i) ~len
28            let everything = Array.create_matrix ~dimx:42 ~dimy:42 42
29
30
31
32
33
34
35       module Array : (module ArrayLabels)
36
37
38
39
40       module Bytes : (module BytesLabels)
41
42
43
44
45       module List : (module ListLabels)
46
47
48
49
50       module String : (module StringLabels)
51
52
53
54
55
56
57
58OCamldoc                          2022-02-04                      StdLabels(3)
Impressum