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