@grain/stdlib 0.7.0 → 0.7.2

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 (62) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/array.md +491 -491
  3. package/bigint.md +198 -198
  4. package/buffer.gr +66 -1
  5. package/buffer.md +395 -272
  6. package/bytes.gr +1 -0
  7. package/bytes.md +200 -199
  8. package/char.md +125 -125
  9. package/exception.md +9 -9
  10. package/float32.md +195 -195
  11. package/float64.md +195 -195
  12. package/fs.md +115 -115
  13. package/hash.md +16 -16
  14. package/int16.md +155 -155
  15. package/int32.gr +1 -1
  16. package/int32.md +207 -207
  17. package/int64.gr +1 -1
  18. package/int64.md +207 -207
  19. package/int8.md +155 -155
  20. package/json.md +59 -59
  21. package/list.md +347 -347
  22. package/map.md +222 -222
  23. package/marshal.md +12 -12
  24. package/number.gr +119 -5
  25. package/number.md +503 -261
  26. package/option.md +141 -141
  27. package/package.json +2 -2
  28. package/path.gr +82 -65
  29. package/path.md +210 -141
  30. package/pervasives.md +238 -238
  31. package/priorityqueue.md +112 -112
  32. package/queue.md +117 -117
  33. package/random.md +37 -37
  34. package/range.md +36 -36
  35. package/rational.md +107 -107
  36. package/regex.md +91 -91
  37. package/result.md +102 -102
  38. package/runtime/atof/decimal.md +6 -6
  39. package/runtime/compare.md +7 -7
  40. package/runtime/dataStructures.md +178 -178
  41. package/runtime/equal.md +7 -7
  42. package/runtime/exception.md +15 -15
  43. package/runtime/malloc.md +9 -9
  44. package/runtime/numbers.md +269 -269
  45. package/runtime/string.md +17 -17
  46. package/runtime/unsafe/conv.md +6 -6
  47. package/runtime/unsafe/memory.gr +2 -19
  48. package/runtime/unsafe/memory.md +10 -10
  49. package/runtime/utf8.md +31 -31
  50. package/runtime/wasi.md +9 -9
  51. package/set.md +211 -211
  52. package/stack.md +122 -122
  53. package/string.md +228 -228
  54. package/uint16.md +148 -148
  55. package/uint32.md +192 -192
  56. package/uint64.md +192 -192
  57. package/uint8.md +148 -148
  58. package/uri.md +77 -77
  59. package/wasi/file.md +269 -269
  60. package/wasi/process.md +21 -21
  61. package/wasi/random.md +9 -9
  62. package/wasi/time.md +12 -12
@@ -16,15 +16,15 @@ Allocates a new Grain array.
16
16
 
17
17
  Parameters:
18
18
 
19
- |param|type|description|
20
- |-----|----|-----------|
21
- |`size`|`WasmI32`|The number of elements to be contained in this array|
19
+ | param | type | description |
20
+ | ------ | --------- | ---------------------------------------------------- |
21
+ | `size` | `WasmI32` | The number of elements to be contained in this array |
22
22
 
23
23
  Returns:
24
24
 
25
- |type|description|
26
- |----|-----------|
27
- |`WasmI32`|The pointer to the array|
25
+ | type | description |
26
+ | --------- | ------------------------ |
27
+ | `WasmI32` | The pointer to the array |
28
28
 
29
29
  ### DataStructures.**allocateTuple**
30
30
 
@@ -36,15 +36,15 @@ Allocates a new Grain tuple.
36
36
 
37
37
  Parameters:
38
38
 
39
- |param|type|description|
40
- |-----|----|-----------|
41
- |`size`|`WasmI32`|The number of elements to be contained in this tuple|
39
+ | param | type | description |
40
+ | ------ | --------- | ---------------------------------------------------- |
41
+ | `size` | `WasmI32` | The number of elements to be contained in this tuple |
42
42
 
43
43
  Returns:
44
44
 
45
- |type|description|
46
- |----|-----------|
47
- |`WasmI32`|The pointer to the tuple|
45
+ | type | description |
46
+ | --------- | ------------------------ |
47
+ | `WasmI32` | The pointer to the tuple |
48
48
 
49
49
  ### DataStructures.**allocateBytes**
50
50
 
@@ -56,15 +56,15 @@ Allocates a new Grain bytes.
56
56
 
57
57
  Parameters:
58
58
 
59
- |param|type|description|
60
- |-----|----|-----------|
61
- |`size`|`WasmI32`|The number of bytes to be contained in this buffer|
59
+ | param | type | description |
60
+ | ------ | --------- | -------------------------------------------------- |
61
+ | `size` | `WasmI32` | The number of bytes to be contained in this buffer |
62
62
 
63
63
  Returns:
64
64
 
65
- |type|description|
66
- |----|-----------|
67
- |`WasmI32`|The pointer to the bytes|
65
+ | type | description |
66
+ | --------- | ------------------------ |
67
+ | `WasmI32` | The pointer to the bytes |
68
68
 
69
69
  ### DataStructures.**allocateString**
70
70
 
@@ -76,15 +76,15 @@ Allocates a new Grain string.
76
76
 
77
77
  Parameters:
78
78
 
79
- |param|type|description|
80
- |-----|----|-----------|
81
- |`size`|`WasmI32`|The size (in bytes) of the string to allocate|
79
+ | param | type | description |
80
+ | ------ | --------- | --------------------------------------------- |
81
+ | `size` | `WasmI32` | The size (in bytes) of the string to allocate |
82
82
 
83
83
  Returns:
84
84
 
85
- |type|description|
86
- |----|-----------|
87
- |`WasmI32`|The pointer to the string|
85
+ | type | description |
86
+ | --------- | ------------------------- |
87
+ | `WasmI32` | The pointer to the string |
88
88
 
89
89
  ### DataStructures.**allocateInt32**
90
90
 
@@ -96,9 +96,9 @@ Allocates a new Int32.
96
96
 
97
97
  Returns:
98
98
 
99
- |type|description|
100
- |----|-----------|
101
- |`WasmI32`|The pointer to the empty Int32|
99
+ | type | description |
100
+ | --------- | ------------------------------ |
101
+ | `WasmI32` | The pointer to the empty Int32 |
102
102
 
103
103
  ### DataStructures.**newInt32**
104
104
 
@@ -110,15 +110,15 @@ Allocates a new Int32 with a prepopulated value
110
110
 
111
111
  Parameters:
112
112
 
113
- |param|type|description|
114
- |-----|----|-----------|
115
- |`int`|`WasmI32`|The value to store|
113
+ | param | type | description |
114
+ | ----- | --------- | ------------------ |
115
+ | `int` | `WasmI32` | The value to store |
116
116
 
117
117
  Returns:
118
118
 
119
- |type|description|
120
- |----|-----------|
121
- |`WasmI32`|The pointer to the Int32|
119
+ | type | description |
120
+ | --------- | ------------------------ |
121
+ | `WasmI32` | The pointer to the Int32 |
122
122
 
123
123
  ### DataStructures.**allocateUint32**
124
124
 
@@ -130,9 +130,9 @@ Allocates a new Uint32.
130
130
 
131
131
  Returns:
132
132
 
133
- |type|description|
134
- |----|-----------|
135
- |`WasmI32`|The pointer to the empty Uint32|
133
+ | type | description |
134
+ | --------- | ------------------------------- |
135
+ | `WasmI32` | The pointer to the empty Uint32 |
136
136
 
137
137
  ### DataStructures.**newUint32**
138
138
 
@@ -144,15 +144,15 @@ Allocates a new Uint32 with a prepopulated value
144
144
 
145
145
  Parameters:
146
146
 
147
- |param|type|description|
148
- |-----|----|-----------|
149
- |`int`|`WasmI32`|The value to store|
147
+ | param | type | description |
148
+ | ----- | --------- | ------------------ |
149
+ | `int` | `WasmI32` | The value to store |
150
150
 
151
151
  Returns:
152
152
 
153
- |type|description|
154
- |----|-----------|
155
- |`WasmI32`|The pointer to the Uint32|
153
+ | type | description |
154
+ | --------- | ------------------------- |
155
+ | `WasmI32` | The pointer to the Uint32 |
156
156
 
157
157
  ### DataStructures.**allocateInt64**
158
158
 
@@ -164,9 +164,9 @@ Allocates a new Int64.
164
164
 
165
165
  Returns:
166
166
 
167
- |type|description|
168
- |----|-----------|
169
- |`WasmI32`|The pointer to the empty Int64|
167
+ | type | description |
168
+ | --------- | ------------------------------ |
169
+ | `WasmI32` | The pointer to the empty Int64 |
170
170
 
171
171
  ### DataStructures.**newInt64**
172
172
 
@@ -178,15 +178,15 @@ Allocates a new Int64 with a prepopulated value
178
178
 
179
179
  Parameters:
180
180
 
181
- |param|type|description|
182
- |-----|----|-----------|
183
- |`int`|`WasmI64`|The value to store|
181
+ | param | type | description |
182
+ | ----- | --------- | ------------------ |
183
+ | `int` | `WasmI64` | The value to store |
184
184
 
185
185
  Returns:
186
186
 
187
- |type|description|
188
- |----|-----------|
189
- |`WasmI32`|The pointer to the Int64|
187
+ | type | description |
188
+ | --------- | ------------------------ |
189
+ | `WasmI32` | The pointer to the Int64 |
190
190
 
191
191
  ### DataStructures.**allocateUint64**
192
192
 
@@ -198,9 +198,9 @@ Allocates a new Uint64.
198
198
 
199
199
  Returns:
200
200
 
201
- |type|description|
202
- |----|-----------|
203
- |`WasmI32`|The pointer to the empty Uint64|
201
+ | type | description |
202
+ | --------- | ------------------------------- |
203
+ | `WasmI32` | The pointer to the empty Uint64 |
204
204
 
205
205
  ### DataStructures.**newUint64**
206
206
 
@@ -212,15 +212,15 @@ Allocates a new Uint64 with a prepopulated value
212
212
 
213
213
  Parameters:
214
214
 
215
- |param|type|description|
216
- |-----|----|-----------|
217
- |`int`|`WasmI64`|The value to store|
215
+ | param | type | description |
216
+ | ----- | --------- | ------------------ |
217
+ | `int` | `WasmI64` | The value to store |
218
218
 
219
219
  Returns:
220
220
 
221
- |type|description|
222
- |----|-----------|
223
- |`WasmI32`|The pointer to the Uint64|
221
+ | type | description |
222
+ | --------- | ------------------------- |
223
+ | `WasmI32` | The pointer to the Uint64 |
224
224
 
225
225
  ### DataStructures.**allocateFloat32**
226
226
 
@@ -232,9 +232,9 @@ Allocates a new Float32.
232
232
 
233
233
  Returns:
234
234
 
235
- |type|description|
236
- |----|-----------|
237
- |`WasmI32`|The pointer to the empty Float32|
235
+ | type | description |
236
+ | --------- | -------------------------------- |
237
+ | `WasmI32` | The pointer to the empty Float32 |
238
238
 
239
239
  ### DataStructures.**newFloat32**
240
240
 
@@ -246,15 +246,15 @@ Allocates a new Float32 with a prepopulated value
246
246
 
247
247
  Parameters:
248
248
 
249
- |param|type|description|
250
- |-----|----|-----------|
251
- |`float`|`WasmF32`|The value to store|
249
+ | param | type | description |
250
+ | ------- | --------- | ------------------ |
251
+ | `float` | `WasmF32` | The value to store |
252
252
 
253
253
  Returns:
254
254
 
255
- |type|description|
256
- |----|-----------|
257
- |`WasmI32`|the pointer to the Float32|
255
+ | type | description |
256
+ | --------- | -------------------------- |
257
+ | `WasmI32` | the pointer to the Float32 |
258
258
 
259
259
  ### DataStructures.**allocateFloat64**
260
260
 
@@ -266,9 +266,9 @@ Allocates a new Float64.
266
266
 
267
267
  Returns:
268
268
 
269
- |type|description|
270
- |----|-----------|
271
- |`WasmI32`|The pointer to the empty Float64|
269
+ | type | description |
270
+ | --------- | -------------------------------- |
271
+ | `WasmI32` | The pointer to the empty Float64 |
272
272
 
273
273
  ### DataStructures.**newFloat64**
274
274
 
@@ -280,15 +280,15 @@ Allocates a new Float64 with a prepopulated value
280
280
 
281
281
  Parameters:
282
282
 
283
- |param|type|description|
284
- |-----|----|-----------|
285
- |`float`|`WasmF64`|The value to store|
283
+ | param | type | description |
284
+ | ------- | --------- | ------------------ |
285
+ | `float` | `WasmF64` | The value to store |
286
286
 
287
287
  Returns:
288
288
 
289
- |type|description|
290
- |----|-----------|
291
- |`WasmI32`|The pointer to the Float64|
289
+ | type | description |
290
+ | --------- | -------------------------- |
291
+ | `WasmI32` | The pointer to the Float64 |
292
292
 
293
293
  ### DataStructures.**allocateRational**
294
294
 
@@ -300,9 +300,9 @@ Allocates a new Rational.
300
300
 
301
301
  Returns:
302
302
 
303
- |type|description|
304
- |----|-----------|
305
- |`WasmI32`|The pointer to the empty Rational|
303
+ | type | description |
304
+ | --------- | --------------------------------- |
305
+ | `WasmI32` | The pointer to the empty Rational |
306
306
 
307
307
  ### DataStructures.**newRational**
308
308
 
@@ -314,16 +314,16 @@ Allocates a new Rational with a prepopulated value
314
314
 
315
315
  Parameters:
316
316
 
317
- |param|type|description|
318
- |-----|----|-----------|
319
- |`numerator`|`WasmI32`|The numerator value to store|
320
- |`denominator`|`WasmI32`|The denominator value to store|
317
+ | param | type | description |
318
+ | ------------- | --------- | ------------------------------ |
319
+ | `numerator` | `WasmI32` | The numerator value to store |
320
+ | `denominator` | `WasmI32` | The denominator value to store |
321
321
 
322
322
  Returns:
323
323
 
324
- |type|description|
325
- |----|-----------|
326
- |`WasmI32`|The pointer to the Rational|
324
+ | type | description |
325
+ | --------- | --------------------------- |
326
+ | `WasmI32` | The pointer to the Rational |
327
327
 
328
328
  ### DataStructures.**loadAdtVariant**
329
329
 
@@ -335,15 +335,15 @@ Load the (tagged) variant of an ADT.
335
335
 
336
336
  Parameters:
337
337
 
338
- |param|type|description|
339
- |-----|----|-----------|
340
- |`ptr`|`WasmI32`|Untagged pointer to the ADT|
338
+ | param | type | description |
339
+ | ----- | --------- | --------------------------- |
340
+ | `ptr` | `WasmI32` | Untagged pointer to the ADT |
341
341
 
342
342
  Returns:
343
343
 
344
- |type|description|
345
- |----|-----------|
346
- |`WasmI32`|The (tagged) ADT variant id|
344
+ | type | description |
345
+ | --------- | --------------------------- |
346
+ | `WasmI32` | The (tagged) ADT variant id |
347
347
 
348
348
  ### DataStructures.**stringSize**
349
349
 
@@ -355,15 +355,15 @@ Load an untagged string's size.
355
355
 
356
356
  Parameters:
357
357
 
358
- |param|type|description|
359
- |-----|----|-----------|
360
- |`ptr`|`WasmI32`|Untagged pointer to the string|
358
+ | param | type | description |
359
+ | ----- | --------- | ------------------------------ |
360
+ | `ptr` | `WasmI32` | Untagged pointer to the string |
361
361
 
362
362
  Returns:
363
363
 
364
- |type|description|
365
- |----|-----------|
366
- |`WasmI32`|The string size (in bytes)|
364
+ | type | description |
365
+ | --------- | -------------------------- |
366
+ | `WasmI32` | The string size (in bytes) |
367
367
 
368
368
  ### DataStructures.**bytesSize**
369
369
 
@@ -375,15 +375,15 @@ Load an untagged Bytes' size.
375
375
 
376
376
  Parameters:
377
377
 
378
- |param|type|description|
379
- |-----|----|-----------|
380
- |`ptr`|`WasmI32`|Untagged pointer to the Bytes|
378
+ | param | type | description |
379
+ | ----- | --------- | ----------------------------- |
380
+ | `ptr` | `WasmI32` | Untagged pointer to the Bytes |
381
381
 
382
382
  Returns:
383
383
 
384
- |type|description|
385
- |----|-----------|
386
- |`WasmI32`|The Bytes size (in bytes)|
384
+ | type | description |
385
+ | --------- | ------------------------- |
386
+ | `WasmI32` | The Bytes size (in bytes) |
387
387
 
388
388
  ### DataStructures.**tagSimpleNumber**
389
389
 
@@ -395,15 +395,15 @@ Tag a simple number.
395
395
 
396
396
  Parameters:
397
397
 
398
- |param|type|description|
399
- |-----|----|-----------|
400
- |`num`|`WasmI32`|The number to tag|
398
+ | param | type | description |
399
+ | ----- | --------- | ----------------- |
400
+ | `num` | `WasmI32` | The number to tag |
401
401
 
402
402
  Returns:
403
403
 
404
- |type|description|
405
- |----|-----------|
406
- |`Number`|The tagged number|
404
+ | type | description |
405
+ | -------- | ----------------- |
406
+ | `Number` | The tagged number |
407
407
 
408
408
  ### DataStructures.**untagSimpleNumber**
409
409
 
@@ -415,15 +415,15 @@ Untag a simple number.
415
415
 
416
416
  Parameters:
417
417
 
418
- |param|type|description|
419
- |-----|----|-----------|
420
- |`num`|`Number`|The number to untag|
418
+ | param | type | description |
419
+ | ----- | -------- | ------------------- |
420
+ | `num` | `Number` | The number to untag |
421
421
 
422
422
  Returns:
423
423
 
424
- |type|description|
425
- |----|-----------|
426
- |`WasmI32`|The untagged number|
424
+ | type | description |
425
+ | --------- | ------------------- |
426
+ | `WasmI32` | The untagged number |
427
427
 
428
428
  ### DataStructures.**tagChar**
429
429
 
@@ -435,15 +435,15 @@ Tag a char.
435
435
 
436
436
  Parameters:
437
437
 
438
- |param|type|description|
439
- |-----|----|-----------|
440
- |`char`|`WasmI32`|The usv to tag|
438
+ | param | type | description |
439
+ | ------ | --------- | -------------- |
440
+ | `char` | `WasmI32` | The usv to tag |
441
441
 
442
442
  Returns:
443
443
 
444
- |type|description|
445
- |----|-----------|
446
- |`Char`|The tagged char|
444
+ | type | description |
445
+ | ------ | --------------- |
446
+ | `Char` | The tagged char |
447
447
 
448
448
  ### DataStructures.**untagChar**
449
449
 
@@ -455,15 +455,15 @@ Untag a char.
455
455
 
456
456
  Parameters:
457
457
 
458
- |param|type|description|
459
- |-----|----|-----------|
460
- |`char`|`Char`|The char to untag|
458
+ | param | type | description |
459
+ | ------ | ------ | ----------------- |
460
+ | `char` | `Char` | The char to untag |
461
461
 
462
462
  Returns:
463
463
 
464
- |type|description|
465
- |----|-----------|
466
- |`WasmI32`|The untagged usv|
464
+ | type | description |
465
+ | --------- | ---------------- |
466
+ | `WasmI32` | The untagged usv |
467
467
 
468
468
  ### DataStructures.**tagInt8**
469
469
 
@@ -475,15 +475,15 @@ Tag an int8.
475
475
 
476
476
  Parameters:
477
477
 
478
- |param|type|description|
479
- |-----|----|-----------|
480
- |`int`|`WasmI32`|The int8 to tag|
478
+ | param | type | description |
479
+ | ----- | --------- | --------------- |
480
+ | `int` | `WasmI32` | The int8 to tag |
481
481
 
482
482
  Returns:
483
483
 
484
- |type|description|
485
- |----|-----------|
486
- |`Int8`|The tagged int8|
484
+ | type | description |
485
+ | ------ | --------------- |
486
+ | `Int8` | The tagged int8 |
487
487
 
488
488
  ### DataStructures.**untagInt8**
489
489
 
@@ -495,15 +495,15 @@ Untag an int8.
495
495
 
496
496
  Parameters:
497
497
 
498
- |param|type|description|
499
- |-----|----|-----------|
500
- |`int`|`Int8`|The int8 to untag|
498
+ | param | type | description |
499
+ | ----- | ------ | ----------------- |
500
+ | `int` | `Int8` | The int8 to untag |
501
501
 
502
502
  Returns:
503
503
 
504
- |type|description|
505
- |----|-----------|
506
- |`WasmI32`|The untagged int8|
504
+ | type | description |
505
+ | --------- | ----------------- |
506
+ | `WasmI32` | The untagged int8 |
507
507
 
508
508
  ### DataStructures.**tagInt16**
509
509
 
@@ -515,15 +515,15 @@ Tag an int16.
515
515
 
516
516
  Parameters:
517
517
 
518
- |param|type|description|
519
- |-----|----|-----------|
520
- |`int`|`WasmI32`|The int16 to tag|
518
+ | param | type | description |
519
+ | ----- | --------- | ---------------- |
520
+ | `int` | `WasmI32` | The int16 to tag |
521
521
 
522
522
  Returns:
523
523
 
524
- |type|description|
525
- |----|-----------|
526
- |`Int16`|The tagged int16|
524
+ | type | description |
525
+ | ------- | ---------------- |
526
+ | `Int16` | The tagged int16 |
527
527
 
528
528
  ### DataStructures.**untagInt16**
529
529
 
@@ -535,15 +535,15 @@ Untag an int16.
535
535
 
536
536
  Parameters:
537
537
 
538
- |param|type|description|
539
- |-----|----|-----------|
540
- |`int`|`Int16`|The int16 to untag|
538
+ | param | type | description |
539
+ | ----- | ------- | ------------------ |
540
+ | `int` | `Int16` | The int16 to untag |
541
541
 
542
542
  Returns:
543
543
 
544
- |type|description|
545
- |----|-----------|
546
- |`WasmI32`|The untagged int16|
544
+ | type | description |
545
+ | --------- | ------------------ |
546
+ | `WasmI32` | The untagged int16 |
547
547
 
548
548
  ### DataStructures.**tagUint8**
549
549
 
@@ -555,15 +555,15 @@ Tag a uint8.
555
555
 
556
556
  Parameters:
557
557
 
558
- |param|type|description|
559
- |-----|----|-----------|
560
- |`int`|`WasmI32`|The uint8 to tag|
558
+ | param | type | description |
559
+ | ----- | --------- | ---------------- |
560
+ | `int` | `WasmI32` | The uint8 to tag |
561
561
 
562
562
  Returns:
563
563
 
564
- |type|description|
565
- |----|-----------|
566
- |`Uint8`|The tagged uint8|
564
+ | type | description |
565
+ | ------- | ---------------- |
566
+ | `Uint8` | The tagged uint8 |
567
567
 
568
568
  ### DataStructures.**untagUint8**
569
569
 
@@ -575,15 +575,15 @@ Untag a uint8.
575
575
 
576
576
  Parameters:
577
577
 
578
- |param|type|description|
579
- |-----|----|-----------|
580
- |`int`|`Uint8`|The uint8 to untag|
578
+ | param | type | description |
579
+ | ----- | ------- | ------------------ |
580
+ | `int` | `Uint8` | The uint8 to untag |
581
581
 
582
582
  Returns:
583
583
 
584
- |type|description|
585
- |----|-----------|
586
- |`WasmI32`|The untagged uint8|
584
+ | type | description |
585
+ | --------- | ------------------ |
586
+ | `WasmI32` | The untagged uint8 |
587
587
 
588
588
  ### DataStructures.**tagUint16**
589
589
 
@@ -595,15 +595,15 @@ Tag a uint16.
595
595
 
596
596
  Parameters:
597
597
 
598
- |param|type|description|
599
- |-----|----|-----------|
600
- |`int`|`WasmI32`|The uint16 to tag|
598
+ | param | type | description |
599
+ | ----- | --------- | ----------------- |
600
+ | `int` | `WasmI32` | The uint16 to tag |
601
601
 
602
602
  Returns:
603
603
 
604
- |type|description|
605
- |----|-----------|
606
- |`Uint16`|The tagged uint16|
604
+ | type | description |
605
+ | -------- | ----------------- |
606
+ | `Uint16` | The tagged uint16 |
607
607
 
608
608
  ### DataStructures.**untagUint16**
609
609
 
@@ -615,13 +615,13 @@ Untag a uint16.
615
615
 
616
616
  Parameters:
617
617
 
618
- |param|type|description|
619
- |-----|----|-----------|
620
- |`int`|`Uint16`|The uint16 to untag|
618
+ | param | type | description |
619
+ | ----- | -------- | ------------------- |
620
+ | `int` | `Uint16` | The uint16 to untag |
621
621
 
622
622
  Returns:
623
623
 
624
- |type|description|
625
- |----|-----------|
626
- |`WasmI32`|The untagged uint16|
624
+ | type | description |
625
+ | --------- | ------------------- |
626
+ | `WasmI32` | The untagged uint16 |
627
627
 
package/runtime/equal.md CHANGED
@@ -22,14 +22,14 @@ so it also works for comparing things like tuples and lists.
22
22
 
23
23
  Parameters:
24
24
 
25
- |param|type|description|
26
- |-----|----|-----------|
27
- |`value1`|`a`|The first operand|
28
- |`value2`|`a`|The second operand|
25
+ | param | type | description |
26
+ | -------- | ---- | ------------------ |
27
+ | `value1` | `a` | The first operand |
28
+ | `value2` | `a` | The second operand |
29
29
 
30
30
  Returns:
31
31
 
32
- |type|description|
33
- |----|-----------|
34
- |`Bool`|`true` if the values are structurally equal or `false` otherwise|
32
+ | type | description |
33
+ | ------ | ---------------------------------------------------------------- |
34
+ | `Bool` | `true` if the values are structurally equal or `false` otherwise |
35
35