@@ -81,7 +81,7 @@ external \"||": (bool, bool) => bool = "%sequor"
81
81
external succ : int => int = "%succint"
82
82
external pred : int => int = "%predint"
83
83
84
- @deprecated ("Use Core instead. This will be removed in v13" )
84
+ @deprecated ("Use `Math.abs` instead. This will be removed in v13" )
85
85
let abs = x =>
86
86
if x >= 0 {
87
87
x
@@ -99,10 +99,10 @@ external lsl: (int, int) => int = "%lslint"
99
99
external lsr : (int , int ) => int = "%lsrint"
100
100
external asr : (int , int ) => int = "%asrint"
101
101
102
- @deprecated ("Use Core instead. This will be removed in v13" )
102
+ @deprecated ("Use `Int.Constants.maxValue` instead. This will be removed in v13" )
103
103
let max_int = lsr (- 1 , 1 )
104
104
105
- @deprecated ("Use Core instead. This will be removed in v13" )
105
+ @deprecated ("Use `Int.Constants.minValue` instead. This will be removed in v13" )
106
106
let min_int =
107
107
max_int + 1
108
108
@@ -115,91 +115,91 @@ external \"-.": (float, float) => float = "%subfloat"
115
115
external \"*." : (float , float ) => float = "%mulfloat"
116
116
external \"/." : (float , float ) => float = "%divfloat"
117
117
118
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
118
+ @deprecated ("Use `Math.exp` instead. This will be removed in v13" ) @val @scope ("Math" )
119
119
external exp : float => float = "exp"
120
120
121
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
121
+ @deprecated ("Use `Math.acos` instead. This will be removed in v13" ) @val @scope ("Math" )
122
122
external acos : float => float = "acos"
123
123
124
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
124
+ @deprecated ("Use `Math.asin` instead. This will be removed in v13" ) @val @scope ("Math" )
125
125
external asin : float => float = "asin"
126
126
127
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
127
+ @deprecated ("Use `Math.atan` instead. This will be removed in v13" ) @val @scope ("Math" )
128
128
external atan : float => float = "atan"
129
129
130
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
130
+ @deprecated ("Use `Math.atan2` instead. This will be removed in v13" ) @val @scope ("Math" )
131
131
external atan2 : (float , float ) => float = "atan2"
132
132
133
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
133
+ @deprecated ("Use `Math.cos` instead. This will be removed in v13" ) @val @scope ("Math" )
134
134
external cos : float => float = "cos"
135
135
136
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
136
+ @deprecated ("Use `Math.cosh` instead. This will be removed in v13" ) @val @scope ("Math" )
137
137
external cosh : float => float = "cosh"
138
138
139
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
139
+ @deprecated ("Use `Math.log` instead. This will be removed in v13" ) @val @scope ("Math" )
140
140
external log : float => float = "log"
141
141
142
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
142
+ @deprecated ("Use `Math.log10` instead. This will be removed in v13" ) @val @scope ("Math" )
143
143
external log10 : float => float = "log10"
144
144
145
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
145
+ @deprecated ("Use `Math.log1p` instead. This will be removed in v13" ) @val @scope ("Math" )
146
146
external log1p : float => float = "log1p"
147
147
148
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
148
+ @deprecated ("Use `Math.sin` instead. This will be removed in v13" ) @val @scope ("Math" )
149
149
external sin : float => float = "sin"
150
150
151
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
151
+ @deprecated ("Use `Math.sinh` instead. This will be removed in v13" ) @val @scope ("Math" )
152
152
external sinh : float => float = "sinh"
153
153
154
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
154
+ @deprecated ("Use `Math.sqrt` instead. This will be removed in v13" ) @val @scope ("Math" )
155
155
external sqrt : float => float = "sqrt"
156
156
157
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
157
+ @deprecated ("Use `Math.tan` instead. This will be removed in v13" ) @val @scope ("Math" )
158
158
external tan : float => float = "tan"
159
159
160
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
160
+ @deprecated ("Use `Math.tanh` instead. This will be removed in v13" ) @val @scope ("Math" )
161
161
external tanh : float => float = "tanh"
162
162
163
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
163
+ @deprecated ("Use `Math.ceil` instead. This will be removed in v13" ) @val @scope ("Math" )
164
164
external ceil : float => float = "ceil"
165
165
166
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
166
+ @deprecated ("Use `Math.floor` instead. This will be removed in v13" ) @val @scope ("Math" )
167
167
external floor : float => float = "floor"
168
168
169
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Math" )
169
+ @deprecated ("Use `Math.abs` instead. This will be removed in v13" ) @val @scope ("Math" )
170
170
external abs_float : float => float = "abs"
171
171
172
- @deprecated ("Use Core instead. This will be removed in v13" )
172
+ @deprecated ("Use `%` instead. This will be removed in v13" )
173
173
external mod_float : (float , float ) => float = "%modfloat"
174
174
175
- @deprecated ("Use Core instead. This will be removed in v13" )
175
+ @deprecated ("Use `Int.toFloat` instead. This will be removed in v13" )
176
176
external float : int => float = "%floatofint"
177
177
178
- @deprecated ("Use Core instead. This will be removed in v13" )
178
+ @deprecated ("Use `Int.toFloat` instead. This will be removed in v13" )
179
179
external float_of_int : int => float = "%floatofint"
180
180
181
- @deprecated ("Use Core instead. This will be removed in v13" )
181
+ @deprecated ("Use `Float.toInt` instead. This will be removed in v13" )
182
182
external truncate : float => int = "%intoffloat"
183
183
184
- @deprecated ("Use Core instead. This will be removed in v13" )
184
+ @deprecated ("Use `Float.toInt` instead. This will be removed in v13" )
185
185
external int_of_float : float => int = "%intoffloat"
186
186
187
- @deprecated ("Use Core instead. This will be removed in v13" )
187
+ @deprecated ("Use `Float.positiveInfinity` instead. This will be removed in v13" )
188
188
let infinity = 0x1p2047
189
189
190
- @deprecated ("Use Core instead. This will be removed in v13" )
190
+ @deprecated ("Use `Float.negativeInfinity` instead. This will be removed in v13" )
191
191
let neg_infinity = - 0x1p2047
192
192
193
- @deprecated ("Use Core instead. This will be removed in v13" ) @val @scope ("Number" )
193
+ @deprecated ("Use `Float.nan` instead. This will be removed in v13" ) @val @scope ("Number" )
194
194
external nan : float = "NaN"
195
195
196
- @deprecated ("Use Core instead. This will be removed in v13" )
196
+ @deprecated ("Use `Float.Constants.maxValue` instead. This will be removed in v13" )
197
197
let max_float = 1.79769313486231571e+308 /* 0x1.ffff_ffff_ffff_fp+1023 */
198
198
199
- @deprecated ("Use Core instead. This will be removed in v13" )
199
+ @deprecated ("Use `Float.Constants.minValue` instead. This will be removed in v13" )
200
200
let min_float = 2.22507385850720138e-308 /* 0x1p-1022 */
201
201
202
- @deprecated ("Use Core instead. This will be removed in v13" )
202
+ @deprecated ("Use `Float.Constants.epsilon` instead. This will be removed in v13" )
203
203
let epsilon_float = 2.22044604925031308e-16 /* 0x1p-52 */
204
204
205
205
@deprecated ("Do not use. This will be removed in v13" )
@@ -232,13 +232,13 @@ external \"++": (string, string) => string = "%string_concat"
232
232
233
233
/* Character operations -- more in module Char */
234
234
235
- @deprecated ("Use Core instead. This will be removed in v13" )
235
+ @deprecated ("Use `Char.code` instead. This will be removed in v13" )
236
236
external int_of_char : char => int = "%identity"
237
237
238
- @deprecated ("Use Core instead. This will be removed in v13" )
238
+ @deprecated ("Use `Char.fromIntUnsafe` instead. This will be removed in v13" )
239
239
external unsafe_char_of_int : int => char = "%identity"
240
240
241
- @deprecated ("Use Core instead. This will be removed in v13" )
241
+ @deprecated ("Use `Char.fromIntExn` instead. This will be removed in v13" )
242
242
let char_of_int = n =>
243
243
if n < 0 || n > 255 {
244
244
invalid_arg ("char_of_int" )
@@ -266,34 +266,34 @@ external decr: ref<int> => unit = "%decr"
266
266
267
267
/* String conversion functions */
268
268
269
- @deprecated ("Use Core instead. This will be removed in v13" )
269
+ @deprecated ("Use `Bool.toString` instead. This will be removed in v13" )
270
270
let string_of_bool = b =>
271
271
if b {
272
272
"true"
273
273
} else {
274
274
"false"
275
275
}
276
276
277
- @deprecated ("Use Core instead. This will be removed in v13" )
277
+ @deprecated ("Use `Bool.fromString` instead. This will be removed in v13" )
278
278
let bool_of_string = param =>
279
279
switch param {
280
280
| "true" => true
281
281
| "false" => false
282
282
| _ => invalid_arg ("bool_of_string" )
283
283
}
284
284
285
- @deprecated ("Use Core instead. This will be removed in v13" )
285
+ @deprecated ("Use `Bool.fromString` instead. This will be removed in v13" )
286
286
let bool_of_string_opt = param =>
287
287
switch param {
288
288
| "true" => Some (true )
289
289
| "false" => Some (false )
290
290
| _ => None
291
291
}
292
292
293
- @deprecated ("Use Core instead. This will be removed in v13" )
293
+ @deprecated ("Use `Int.toString` instead. This will be removed in v13" )
294
294
external string_of_int : int => string = "String"
295
295
296
- @deprecated ("Use Core instead. This will be removed in v13" ) @scope ("Number" )
296
+ @deprecated ("Use `Int.fromString` instead. This will be removed in v13" ) @scope ("Number" )
297
297
external int_of_string : string => int = "parseInt"
298
298
299
299
let int_of_string_opt = s =>
@@ -302,12 +302,12 @@ let int_of_string_opt = s =>
302
302
| n => Some (n )
303
303
}
304
304
305
- @deprecated ("Use Core instead. This will be removed in v13" )
305
+ @deprecated ("Use `String.get` instead. This will be removed in v13" )
306
306
external string_get : (string , int ) => char = "%string_safe_get"
307
307
308
308
/* List operations -- more in module List */
309
309
310
- @deprecated ("Use Core instead. This will be removed in v13" )
310
+ @deprecated ("Use `List.concat` instead. This will be removed in v13" )
311
311
let rec \"@" = (l1 , l2 ) =>
312
312
switch l1 {
313
313
| list {} => l2
0 commit comments