3232
3333 The motivation of creating such library is to provide BuckleScript users a
3434 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
3636 improve: {ol
3737 {- 1. Consistency in name convention: camlCase, and arguments order}
3838 {- 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}
4040 }
4141
4242 {b Name Convention}
9595
9696 [I0.identity] and [I1.identity] are not the same using our encoding scheme.
9797
98- {b Collection Hierachy }
98+ {b Collection Hierarchy }
9999
100100 In general, we provide a generic collection module, but also create specialized
101101 modules for commonly used data type, take {i Belt.Set} for example
110110 efficient.
111111
112112 Currently, both {i Belt_Set} and {i Belt.Set} are accessible to users for some
113- technical rasons ,
113+ technical reasons ,
114114 we {b strongly recommend} users stick to qualified import, {i Belt.Sort}, we may hide
115115 the internal, {i i.e}, {i Belt_Set} in the future
116116
117117*)
118118
119119(* * {!Belt.Id}
120120
121- Provide utiliites to create identified comparators or hashes for
121+ Provide utilities to create identified comparators or hashes for
122122 data structures used below.
123123
124- It create a unique identifer per module of
124+ It create a unique identifier per module of
125125 functions so that different data structures with slightly different
126126 comparison functions won't mix
127127*)
128128module Id = Belt_Id
129129
130130(* * {!Belt.Array}
131131
132- {b mutable array}: Utililites functions
132+ {b mutable array}: Utilities functions
133133*)
134134module Array = Belt_Array
135135
136136(* * {!Belt.SortArray}
137137
138- The toplevel provides some generic sort related utililties .
138+ The top level provides some generic sort related utilities .
139139
140140 It also has two specialized inner modules
141141 {!Belt.SortArray.Int} and {!Belt.SortArray.String}
@@ -168,34 +168,34 @@ module Range = Belt_Range
168168
169169(* * {!Belt.Set}
170170
171- The toplevel provides generic {b immutable} set operations.
171+ The top level provides generic {b immutable} set operations.
172172
173173 It also has three specialized inner modules
174174 {!Belt.Set.Int} and {!Belt.Set.String}
175175
176176 {!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
178178
179179*)
180180module Set = Belt_Set
181181
182182
183183(* * {!Belt.Map},
184184
185- The toplevel provides generic {b immutable} map operations.
185+ The top level provides generic {b immutable} map operations.
186186
187187 It also has three specialized inner modules
188188 {!Belt.Map.Int} and {!Belt.Map.String}
189189
190190 {!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
192192*)
193193module Map = Belt_Map
194194
195195
196196(* * {!Belt.MutableSet}
197197
198- The toplevel provides generic {b mutable} set operations.
198+ The top level provides generic {b mutable} set operations.
199199
200200 It also has two specialized inner modules
201201 {!Belt.MutableSet.Int} and {!Belt.MutableSet.String}
@@ -204,7 +204,7 @@ module MutableSet = Belt_MutableSet
204204
205205(* * {!Belt.MutableMap}
206206
207- The toplevel provides generic {b mutable} map operations.
207+ The top level provides generic {b mutable} map operations.
208208
209209 It also has two specialized inner modules
210210 {!Belt.MutableMap.Int} and {!Belt.MutableMap.String}
@@ -215,7 +215,7 @@ module MutableMap = Belt_MutableMap
215215
216216(* * {!Belt.HashSet}
217217
218- The toplevel provides generic {b mutable} hash set operations.
218+ The top level provides generic {b mutable} hash set operations.
219219
220220 It also has two specialized inner modules
221221 {!Belt.HashSet.Int} and {!Belt.HashSet.String}
@@ -225,7 +225,7 @@ module HashSet = Belt_HashSet
225225
226226(* * {!Belt.HashMap}
227227
228- The toplevel provides generic {b mutable} hash map operations.
228+ The top level provides generic {b mutable} hash map operations.
229229
230230 It also has two specialized inner modules
231231 {!Belt.HashMap.Int} and {!Belt.HashMap.String}
0 commit comments