32
32
33
33
The motivation of creating such library is to provide BuckleScript users a
34
34
better end-to-end user experience, since the original OCaml stdlib was not
35
- writte with JS platform in mind, below are a list of areas this lib aims to
35
+ written with JS platform in mind, below are a list of areas this lib aims to
36
36
improve: {ol
37
37
{- 1. Consistency in name convention: camlCase, and arguments order}
38
38
{- 2. Exception thrown functions are all suffixed with {i Exn}, e.g, {i getExn}}
39
- {- 3. Beter peformance and smaller code size running on JS platform}
39
+ {- 3. Better performance and smaller code size running on JS platform}
40
40
}
41
41
42
42
{b Name Convention}
95
95
96
96
[I0.identity] and [I1.identity] are not the same using our encoding scheme.
97
97
98
- {b Collection Hierachy }
98
+ {b Collection Hierarchy }
99
99
100
100
In general, we provide a generic collection module, but also create specialized
101
101
modules for commonly used data type, take {i Belt.Set} for example
110
110
efficient.
111
111
112
112
Currently, both {i Belt_Set} and {i Belt.Set} are accessible to users for some
113
- technical rasons ,
113
+ technical reasons ,
114
114
we {b strongly recommend} users stick to qualified import, {i Belt.Sort}, we may hide
115
115
the internal, {i i.e}, {i Belt_Set} in the future
116
116
117
117
*)
118
118
119
119
(* * {!Belt.Id}
120
120
121
- Provide utiliites to create identified comparators or hashes for
121
+ Provide utilities to create identified comparators or hashes for
122
122
data structures used below.
123
123
124
- It create a unique identifer per module of
124
+ It create a unique identifier per module of
125
125
functions so that different data structures with slightly different
126
126
comparison functions won't mix
127
127
*)
128
128
module Id = Belt_Id
129
129
130
130
(* * {!Belt.Array}
131
131
132
- {b mutable array}: Utililites functions
132
+ {b mutable array}: Utilities functions
133
133
*)
134
134
module Array = Belt_Array
135
135
136
136
(* * {!Belt.SortArray}
137
137
138
- The toplevel provides some generic sort related utililties .
138
+ The top level provides some generic sort related utilities .
139
139
140
140
It also has two specialized inner modules
141
141
{!Belt.SortArray.Int} and {!Belt.SortArray.String}
@@ -168,34 +168,34 @@ module Range = Belt_Range
168
168
169
169
(* * {!Belt.Set}
170
170
171
- The toplevel provides generic {b immutable} set operations.
171
+ The top level provides generic {b immutable} set operations.
172
172
173
173
It also has three specialized inner modules
174
174
{!Belt.Set.Int} and {!Belt.Set.String}
175
175
176
176
{!Belt.Set.Dict}: This module separate date from function
177
- which is more verbbose but slightly more efficient
177
+ which is more verbose but slightly more efficient
178
178
179
179
*)
180
180
module Set = Belt_Set
181
181
182
182
183
183
(* * {!Belt.Map},
184
184
185
- The toplevel provides generic {b immutable} map operations.
185
+ The top level provides generic {b immutable} map operations.
186
186
187
187
It also has three specialized inner modules
188
188
{!Belt.Map.Int} and {!Belt.Map.String}
189
189
190
190
{!Belt.Map.Dict}: This module separate date from function
191
- which is more verbbose but slightly more efficient
191
+ which is more verbose but slightly more efficient
192
192
*)
193
193
module Map = Belt_Map
194
194
195
195
196
196
(* * {!Belt.MutableSet}
197
197
198
- The toplevel provides generic {b mutable} set operations.
198
+ The top level provides generic {b mutable} set operations.
199
199
200
200
It also has two specialized inner modules
201
201
{!Belt.MutableSet.Int} and {!Belt.MutableSet.String}
@@ -204,7 +204,7 @@ module MutableSet = Belt_MutableSet
204
204
205
205
(* * {!Belt.MutableMap}
206
206
207
- The toplevel provides generic {b mutable} map operations.
207
+ The top level provides generic {b mutable} map operations.
208
208
209
209
It also has two specialized inner modules
210
210
{!Belt.MutableMap.Int} and {!Belt.MutableMap.String}
@@ -215,7 +215,7 @@ module MutableMap = Belt_MutableMap
215
215
216
216
(* * {!Belt.HashSet}
217
217
218
- The toplevel provides generic {b mutable} hash set operations.
218
+ The top level provides generic {b mutable} hash set operations.
219
219
220
220
It also has two specialized inner modules
221
221
{!Belt.HashSet.Int} and {!Belt.HashSet.String}
@@ -225,7 +225,7 @@ module HashSet = Belt_HashSet
225
225
226
226
(* * {!Belt.HashMap}
227
227
228
- The toplevel provides generic {b mutable} hash map operations.
228
+ The top level provides generic {b mutable} hash map operations.
229
229
230
230
It also has two specialized inner modules
231
231
{!Belt.HashMap.Int} and {!Belt.HashMap.String}
0 commit comments