@grain/stdlib 0.5.12 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/CHANGELOG.md +200 -0
  2. package/LICENSE +1 -1
  3. package/README.md +25 -2
  4. package/array.gr +1512 -199
  5. package/array.md +2032 -94
  6. package/bigint.gr +239 -140
  7. package/bigint.md +450 -106
  8. package/buffer.gr +595 -102
  9. package/buffer.md +903 -145
  10. package/bytes.gr +401 -110
  11. package/bytes.md +551 -63
  12. package/char.gr +228 -49
  13. package/char.md +373 -7
  14. package/exception.gr +26 -12
  15. package/exception.md +29 -5
  16. package/float32.gr +130 -109
  17. package/float32.md +185 -57
  18. package/float64.gr +112 -99
  19. package/float64.md +185 -57
  20. package/hash.gr +47 -37
  21. package/hash.md +21 -3
  22. package/int16.gr +430 -0
  23. package/int16.md +618 -0
  24. package/int32.gr +200 -269
  25. package/int32.md +254 -289
  26. package/int64.gr +142 -225
  27. package/int64.md +254 -289
  28. package/int8.gr +511 -0
  29. package/int8.md +786 -0
  30. package/json.gr +2084 -0
  31. package/json.md +608 -0
  32. package/list.gr +120 -68
  33. package/list.md +125 -80
  34. package/map.gr +560 -57
  35. package/map.md +672 -56
  36. package/marshal.gr +239 -227
  37. package/marshal.md +36 -4
  38. package/number.gr +626 -676
  39. package/number.md +738 -153
  40. package/option.gr +33 -35
  41. package/option.md +58 -42
  42. package/package.json +2 -2
  43. package/path.gr +148 -187
  44. package/path.md +47 -96
  45. package/pervasives.gr +75 -416
  46. package/pervasives.md +85 -180
  47. package/priorityqueue.gr +433 -74
  48. package/priorityqueue.md +422 -54
  49. package/queue.gr +362 -80
  50. package/queue.md +433 -38
  51. package/random.gr +67 -75
  52. package/random.md +68 -40
  53. package/range.gr +135 -63
  54. package/range.md +198 -43
  55. package/rational.gr +284 -0
  56. package/rational.md +545 -0
  57. package/regex.gr +933 -1066
  58. package/regex.md +59 -60
  59. package/result.gr +23 -25
  60. package/result.md +54 -39
  61. package/runtime/atof/common.gr +78 -82
  62. package/runtime/atof/common.md +22 -10
  63. package/runtime/atof/decimal.gr +102 -127
  64. package/runtime/atof/decimal.md +28 -7
  65. package/runtime/atof/lemire.gr +56 -71
  66. package/runtime/atof/lemire.md +9 -1
  67. package/runtime/atof/parse.gr +83 -110
  68. package/runtime/atof/parse.md +12 -2
  69. package/runtime/atof/slow.gr +28 -35
  70. package/runtime/atof/slow.md +9 -1
  71. package/runtime/atof/table.gr +19 -18
  72. package/runtime/atof/table.md +10 -2
  73. package/runtime/atoi/parse.gr +153 -136
  74. package/runtime/atoi/parse.md +50 -1
  75. package/runtime/bigint.gr +410 -517
  76. package/runtime/bigint.md +71 -57
  77. package/runtime/compare.gr +176 -85
  78. package/runtime/compare.md +31 -1
  79. package/runtime/dataStructures.gr +144 -32
  80. package/runtime/dataStructures.md +267 -31
  81. package/runtime/debugPrint.gr +34 -15
  82. package/runtime/debugPrint.md +37 -5
  83. package/runtime/equal.gr +53 -52
  84. package/runtime/equal.md +30 -1
  85. package/runtime/exception.gr +38 -47
  86. package/runtime/exception.md +10 -8
  87. package/runtime/gc.gr +23 -152
  88. package/runtime/gc.md +13 -17
  89. package/runtime/malloc.gr +31 -31
  90. package/runtime/malloc.md +11 -3
  91. package/runtime/numberUtils.gr +191 -172
  92. package/runtime/numberUtils.md +17 -9
  93. package/runtime/numbers.gr +1695 -1021
  94. package/runtime/numbers.md +1098 -134
  95. package/runtime/string.gr +540 -242
  96. package/runtime/string.md +76 -6
  97. package/runtime/unsafe/constants.gr +30 -13
  98. package/runtime/unsafe/constants.md +80 -0
  99. package/runtime/unsafe/conv.gr +55 -28
  100. package/runtime/unsafe/conv.md +41 -9
  101. package/runtime/unsafe/memory.gr +10 -30
  102. package/runtime/unsafe/memory.md +15 -19
  103. package/runtime/unsafe/tags.gr +37 -21
  104. package/runtime/unsafe/tags.md +88 -8
  105. package/runtime/unsafe/wasmf32.gr +30 -36
  106. package/runtime/unsafe/wasmf32.md +64 -56
  107. package/runtime/unsafe/wasmf64.gr +30 -36
  108. package/runtime/unsafe/wasmf64.md +64 -56
  109. package/runtime/unsafe/wasmi32.gr +49 -66
  110. package/runtime/unsafe/wasmi32.md +102 -94
  111. package/runtime/unsafe/wasmi64.gr +52 -79
  112. package/runtime/unsafe/wasmi64.md +108 -100
  113. package/runtime/utils/printing.gr +13 -15
  114. package/runtime/utils/printing.md +11 -3
  115. package/runtime/wasi.gr +294 -295
  116. package/runtime/wasi.md +62 -42
  117. package/set.gr +574 -64
  118. package/set.md +634 -54
  119. package/stack.gr +181 -64
  120. package/stack.md +271 -42
  121. package/string.gr +453 -533
  122. package/string.md +241 -151
  123. package/uint16.gr +369 -0
  124. package/uint16.md +585 -0
  125. package/uint32.gr +470 -0
  126. package/uint32.md +737 -0
  127. package/uint64.gr +471 -0
  128. package/uint64.md +737 -0
  129. package/uint8.gr +369 -0
  130. package/uint8.md +585 -0
  131. package/uri.gr +1093 -0
  132. package/uri.md +477 -0
  133. package/{sys → wasi}/file.gr +914 -500
  134. package/{sys → wasi}/file.md +454 -50
  135. package/wasi/process.gr +292 -0
  136. package/{sys → wasi}/process.md +164 -6
  137. package/wasi/random.gr +77 -0
  138. package/wasi/random.md +80 -0
  139. package/{sys → wasi}/time.gr +15 -22
  140. package/{sys → wasi}/time.md +5 -5
  141. package/immutablearray.gr +0 -929
  142. package/immutablearray.md +0 -1038
  143. package/immutablemap.gr +0 -493
  144. package/immutablemap.md +0 -479
  145. package/immutablepriorityqueue.gr +0 -360
  146. package/immutablepriorityqueue.md +0 -291
  147. package/immutableset.gr +0 -498
  148. package/immutableset.md +0 -449
  149. package/runtime/debug.gr +0 -2
  150. package/runtime/debug.md +0 -6
  151. package/runtime/unsafe/errors.gr +0 -36
  152. package/runtime/unsafe/errors.md +0 -204
  153. package/sys/process.gr +0 -254
  154. package/sys/random.gr +0 -79
  155. package/sys/random.md +0 -66
package/int16.md ADDED
@@ -0,0 +1,618 @@
1
+ ---
2
+ title: Int16
3
+ ---
4
+
5
+ Utilities for working with the Int16 type.
6
+
7
+ <details disabled>
8
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
9
+ No other changes yet.
10
+ </details>
11
+
12
+ ```grain
13
+ from "int16" include Int16
14
+ ```
15
+
16
+ ## Values
17
+
18
+ Functions and constants included in the Int16 module.
19
+
20
+ ### Int16.**fromNumber**
21
+
22
+ <details disabled>
23
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
24
+ No other changes yet.
25
+ </details>
26
+
27
+ ```grain
28
+ fromNumber : (number: Number) => Int16
29
+ ```
30
+
31
+ Converts a Number to an Int16.
32
+
33
+ Parameters:
34
+
35
+ |param|type|description|
36
+ |-----|----|-----------|
37
+ |`number`|`Number`|The value to convert|
38
+
39
+ Returns:
40
+
41
+ |type|description|
42
+ |----|-----------|
43
+ |`Int16`|The Number represented as an Int16|
44
+
45
+ ### Int16.**toNumber**
46
+
47
+ <details disabled>
48
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
49
+ No other changes yet.
50
+ </details>
51
+
52
+ ```grain
53
+ toNumber : (value: Int16) => Number
54
+ ```
55
+
56
+ Converts an Int16 to a Number.
57
+
58
+ Parameters:
59
+
60
+ |param|type|description|
61
+ |-----|----|-----------|
62
+ |`value`|`Int16`|The value to convert|
63
+
64
+ Returns:
65
+
66
+ |type|description|
67
+ |----|-----------|
68
+ |`Number`|The Int16 represented as a Number|
69
+
70
+ ### Int16.**fromUint16**
71
+
72
+ <details disabled>
73
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
74
+ No other changes yet.
75
+ </details>
76
+
77
+ ```grain
78
+ fromUint16 : (number: Uint16) => Int16
79
+ ```
80
+
81
+ Converts a Uint16 to an Int16.
82
+
83
+ Parameters:
84
+
85
+ |param|type|description|
86
+ |-----|----|-----------|
87
+ |`number`|`Uint16`|The value to convert|
88
+
89
+ Returns:
90
+
91
+ |type|description|
92
+ |----|-----------|
93
+ |`Int16`|The Uint16 represented as an Int16|
94
+
95
+ ### Int16.**incr**
96
+
97
+ <details disabled>
98
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
99
+ No other changes yet.
100
+ </details>
101
+
102
+ ```grain
103
+ incr : (value: Int16) => Int16
104
+ ```
105
+
106
+ Increments the value by one.
107
+
108
+ Parameters:
109
+
110
+ |param|type|description|
111
+ |-----|----|-----------|
112
+ |`value`|`Int16`|The value to increment|
113
+
114
+ Returns:
115
+
116
+ |type|description|
117
+ |----|-----------|
118
+ |`Int16`|The incremented value|
119
+
120
+ ### Int16.**decr**
121
+
122
+ <details disabled>
123
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
124
+ No other changes yet.
125
+ </details>
126
+
127
+ ```grain
128
+ decr : (value: Int16) => Int16
129
+ ```
130
+
131
+ Decrements the value by one.
132
+
133
+ Parameters:
134
+
135
+ |param|type|description|
136
+ |-----|----|-----------|
137
+ |`value`|`Int16`|The value to decrement|
138
+
139
+ Returns:
140
+
141
+ |type|description|
142
+ |----|-----------|
143
+ |`Int16`|The decremented value|
144
+
145
+ ### Int16.**(+)**
146
+
147
+ <details disabled>
148
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
149
+ No other changes yet.
150
+ </details>
151
+
152
+ ```grain
153
+ (+) : (x: Int16, y: Int16) => Int16
154
+ ```
155
+
156
+ Computes the sum of its operands.
157
+
158
+ Parameters:
159
+
160
+ |param|type|description|
161
+ |-----|----|-----------|
162
+ |`x`|`Int16`|The first operand|
163
+ |`y`|`Int16`|The second operand|
164
+
165
+ Returns:
166
+
167
+ |type|description|
168
+ |----|-----------|
169
+ |`Int16`|The sum of the two operands|
170
+
171
+ ### Int16.**(-)**
172
+
173
+ <details disabled>
174
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
175
+ No other changes yet.
176
+ </details>
177
+
178
+ ```grain
179
+ (-) : (x: Int16, y: Int16) => Int16
180
+ ```
181
+
182
+ Computes the difference of its operands.
183
+
184
+ Parameters:
185
+
186
+ |param|type|description|
187
+ |-----|----|-----------|
188
+ |`x`|`Int16`|The first operand|
189
+ |`y`|`Int16`|The second operand|
190
+
191
+ Returns:
192
+
193
+ |type|description|
194
+ |----|-----------|
195
+ |`Int16`|The difference of the two operands|
196
+
197
+ ### Int16.**(*)**
198
+
199
+ <details disabled>
200
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
201
+ No other changes yet.
202
+ </details>
203
+
204
+ ```grain
205
+ (*) : (x: Int16, y: Int16) => Int16
206
+ ```
207
+
208
+ Computes the product of its operands.
209
+
210
+ Parameters:
211
+
212
+ |param|type|description|
213
+ |-----|----|-----------|
214
+ |`x`|`Int16`|The first operand|
215
+ |`y`|`Int16`|The second operand|
216
+
217
+ Returns:
218
+
219
+ |type|description|
220
+ |----|-----------|
221
+ |`Int16`|The product of the two operands|
222
+
223
+ ### Int16.**(/)**
224
+
225
+ <details disabled>
226
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
227
+ No other changes yet.
228
+ </details>
229
+
230
+ ```grain
231
+ (/) : (x: Int16, y: Int16) => Int16
232
+ ```
233
+
234
+ Computes the quotient of its operands using signed division.
235
+
236
+ Parameters:
237
+
238
+ |param|type|description|
239
+ |-----|----|-----------|
240
+ |`x`|`Int16`|The first operand|
241
+ |`y`|`Int16`|The second operand|
242
+
243
+ Returns:
244
+
245
+ |type|description|
246
+ |----|-----------|
247
+ |`Int16`|The quotient of its operands|
248
+
249
+ ### Int16.**rem**
250
+
251
+ <details disabled>
252
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
253
+ No other changes yet.
254
+ </details>
255
+
256
+ ```grain
257
+ rem : (x: Int16, y: Int16) => Int16
258
+ ```
259
+
260
+ Computes the remainder of the division of its operands using signed division.
261
+
262
+ Parameters:
263
+
264
+ |param|type|description|
265
+ |-----|----|-----------|
266
+ |`x`|`Int16`|The first operand|
267
+ |`y`|`Int16`|The second operand|
268
+
269
+ Returns:
270
+
271
+ |type|description|
272
+ |----|-----------|
273
+ |`Int16`|The remainder of its operands|
274
+
275
+ ### Int16.**(%)**
276
+
277
+ <details disabled>
278
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
279
+ No other changes yet.
280
+ </details>
281
+
282
+ ```grain
283
+ (%) : (x: Int16, y: Int16) => Int16
284
+ ```
285
+
286
+ Computes the remainder of the division of the first operand by the second.
287
+ The result will have the sign of the second operand.
288
+
289
+ Parameters:
290
+
291
+ |param|type|description|
292
+ |-----|----|-----------|
293
+ |`x`|`Int16`|The first operand|
294
+ |`y`|`Int16`|The second operand|
295
+
296
+ Returns:
297
+
298
+ |type|description|
299
+ |----|-----------|
300
+ |`Int16`|The modulus of its operands|
301
+
302
+ Throws:
303
+
304
+ `ModuloByZero`
305
+
306
+ * When `y` is zero
307
+
308
+ ### Int16.**(<<)**
309
+
310
+ <details disabled>
311
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
312
+ No other changes yet.
313
+ </details>
314
+
315
+ ```grain
316
+ (<<) : (value: Int16, amount: Int16) => Int16
317
+ ```
318
+
319
+ Shifts the bits of the value left by the given number of bits.
320
+
321
+ Parameters:
322
+
323
+ |param|type|description|
324
+ |-----|----|-----------|
325
+ |`value`|`Int16`|The value to shift|
326
+ |`amount`|`Int16`|The number of bits to shift by|
327
+
328
+ Returns:
329
+
330
+ |type|description|
331
+ |----|-----------|
332
+ |`Int16`|The shifted value|
333
+
334
+ ### Int16.**(>>)**
335
+
336
+ <details disabled>
337
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
338
+ No other changes yet.
339
+ </details>
340
+
341
+ ```grain
342
+ (>>) : (value: Int16, amount: Int16) => Int16
343
+ ```
344
+
345
+ Shifts the bits of the value right by the given number of bits, preserving the sign bit.
346
+
347
+ Parameters:
348
+
349
+ |param|type|description|
350
+ |-----|----|-----------|
351
+ |`value`|`Int16`|The value to shift|
352
+ |`amount`|`Int16`|The amount to shift by|
353
+
354
+ Returns:
355
+
356
+ |type|description|
357
+ |----|-----------|
358
+ |`Int16`|The shifted value|
359
+
360
+ ### Int16.**(==)**
361
+
362
+ <details disabled>
363
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
364
+ No other changes yet.
365
+ </details>
366
+
367
+ ```grain
368
+ (==) : (x: Int16, y: Int16) => Bool
369
+ ```
370
+
371
+ Checks if the first value is equal to the second value.
372
+
373
+ Parameters:
374
+
375
+ |param|type|description|
376
+ |-----|----|-----------|
377
+ |`x`|`Int16`|The first value|
378
+ |`y`|`Int16`|The second value|
379
+
380
+ Returns:
381
+
382
+ |type|description|
383
+ |----|-----------|
384
+ |`Bool`|`true` if the first value is equal to the second value or `false` otherwise|
385
+
386
+ ### Int16.**(!=)**
387
+
388
+ <details disabled>
389
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
390
+ No other changes yet.
391
+ </details>
392
+
393
+ ```grain
394
+ (!=) : (x: Int16, y: Int16) => Bool
395
+ ```
396
+
397
+ Checks if the first value is not equal to the second value.
398
+
399
+ Parameters:
400
+
401
+ |param|type|description|
402
+ |-----|----|-----------|
403
+ |`x`|`Int16`|The first value|
404
+ |`y`|`Int16`|The second value|
405
+
406
+ Returns:
407
+
408
+ |type|description|
409
+ |----|-----------|
410
+ |`Bool`|`true` if the first value is not equal to the second value or `false` otherwise|
411
+
412
+ ### Int16.**(<)**
413
+
414
+ <details disabled>
415
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
416
+ No other changes yet.
417
+ </details>
418
+
419
+ ```grain
420
+ (<) : (x: Int16, y: Int16) => Bool
421
+ ```
422
+
423
+ Checks if the first value is less than the second value.
424
+
425
+ Parameters:
426
+
427
+ |param|type|description|
428
+ |-----|----|-----------|
429
+ |`x`|`Int16`|The first value|
430
+ |`y`|`Int16`|The second value|
431
+
432
+ Returns:
433
+
434
+ |type|description|
435
+ |----|-----------|
436
+ |`Bool`|`true` if the first value is less than the second value or `false` otherwise|
437
+
438
+ ### Int16.**(>)**
439
+
440
+ <details disabled>
441
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
442
+ No other changes yet.
443
+ </details>
444
+
445
+ ```grain
446
+ (>) : (x: Int16, y: Int16) => Bool
447
+ ```
448
+
449
+ Checks if the first value is greater than the second value.
450
+
451
+ Parameters:
452
+
453
+ |param|type|description|
454
+ |-----|----|-----------|
455
+ |`x`|`Int16`|The first value|
456
+ |`y`|`Int16`|The second value|
457
+
458
+ Returns:
459
+
460
+ |type|description|
461
+ |----|-----------|
462
+ |`Bool`|`true` if the first value is greater than the second value or `false` otherwise|
463
+
464
+ ### Int16.**(<=)**
465
+
466
+ <details disabled>
467
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
468
+ No other changes yet.
469
+ </details>
470
+
471
+ ```grain
472
+ (<=) : (x: Int16, y: Int16) => Bool
473
+ ```
474
+
475
+ Checks if the first value is less than or equal to the second value.
476
+
477
+ Parameters:
478
+
479
+ |param|type|description|
480
+ |-----|----|-----------|
481
+ |`x`|`Int16`|The first value|
482
+ |`y`|`Int16`|The second value|
483
+
484
+ Returns:
485
+
486
+ |type|description|
487
+ |----|-----------|
488
+ |`Bool`|`true` if the first value is less than or equal to the second value or `false` otherwise|
489
+
490
+ ### Int16.**(>=)**
491
+
492
+ <details disabled>
493
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
494
+ No other changes yet.
495
+ </details>
496
+
497
+ ```grain
498
+ (>=) : (x: Int16, y: Int16) => Bool
499
+ ```
500
+
501
+ Checks if the first value is greater than or equal to the second value.
502
+
503
+ Parameters:
504
+
505
+ |param|type|description|
506
+ |-----|----|-----------|
507
+ |`x`|`Int16`|The first value|
508
+ |`y`|`Int16`|The second value|
509
+
510
+ Returns:
511
+
512
+ |type|description|
513
+ |----|-----------|
514
+ |`Bool`|`true` if the first value is greater than or equal to the second value or `false` otherwise|
515
+
516
+ ### Int16.**lnot**
517
+
518
+ <details disabled>
519
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
520
+ No other changes yet.
521
+ </details>
522
+
523
+ ```grain
524
+ lnot : (value: Int16) => Int16
525
+ ```
526
+
527
+ Computes the bitwise NOT of the given value.
528
+
529
+ Parameters:
530
+
531
+ |param|type|description|
532
+ |-----|----|-----------|
533
+ |`value`|`Int16`|The given value|
534
+
535
+ Returns:
536
+
537
+ |type|description|
538
+ |----|-----------|
539
+ |`Int16`|Containing the inverted bits of the given value|
540
+
541
+ ### Int16.**(&)**
542
+
543
+ <details disabled>
544
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
545
+ No other changes yet.
546
+ </details>
547
+
548
+ ```grain
549
+ (&) : (x: Int16, y: Int16) => Int16
550
+ ```
551
+
552
+ Computes the bitwise AND (`&`) on the given operands.
553
+
554
+ Parameters:
555
+
556
+ |param|type|description|
557
+ |-----|----|-----------|
558
+ |`x`|`Int16`|The first operand|
559
+ |`y`|`Int16`|The second operand|
560
+
561
+ Returns:
562
+
563
+ |type|description|
564
+ |----|-----------|
565
+ |`Int16`|Containing a `1` in each bit position for which the corresponding bits of both operands are `1`|
566
+
567
+ ### Int16.**(|)**
568
+
569
+ <details disabled>
570
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
571
+ No other changes yet.
572
+ </details>
573
+
574
+ ```grain
575
+ (|) : (x: Int16, y: Int16) => Int16
576
+ ```
577
+
578
+ Computes the bitwise OR (`|`) on the given operands.
579
+
580
+ Parameters:
581
+
582
+ |param|type|description|
583
+ |-----|----|-----------|
584
+ |`x`|`Int16`|The first operand|
585
+ |`y`|`Int16`|The second operand|
586
+
587
+ Returns:
588
+
589
+ |type|description|
590
+ |----|-----------|
591
+ |`Int16`|Containing a `1` in each bit position for which the corresponding bits of either or both operands are `1`|
592
+
593
+ ### Int16.**(^)**
594
+
595
+ <details disabled>
596
+ <summary tabindex="-1">Added in <code>0.6.0</code></summary>
597
+ No other changes yet.
598
+ </details>
599
+
600
+ ```grain
601
+ (^) : (x: Int16, y: Int16) => Int16
602
+ ```
603
+
604
+ Computes the bitwise XOR (`^`) on the given operands.
605
+
606
+ Parameters:
607
+
608
+ |param|type|description|
609
+ |-----|----|-----------|
610
+ |`x`|`Int16`|The first operand|
611
+ |`y`|`Int16`|The second operand|
612
+
613
+ Returns:
614
+
615
+ |type|description|
616
+ |----|-----------|
617
+ |`Int16`|Containing a `1` in each bit position for which the corresponding bits of either but not both operands are `1`|
618
+