@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.
- package/CHANGELOG.md +18 -0
- package/array.md +491 -491
- package/bigint.md +198 -198
- package/buffer.gr +66 -1
- package/buffer.md +395 -272
- package/bytes.gr +1 -0
- package/bytes.md +200 -199
- package/char.md +125 -125
- package/exception.md +9 -9
- package/float32.md +195 -195
- package/float64.md +195 -195
- package/fs.md +115 -115
- package/hash.md +16 -16
- package/int16.md +155 -155
- package/int32.gr +1 -1
- package/int32.md +207 -207
- package/int64.gr +1 -1
- package/int64.md +207 -207
- package/int8.md +155 -155
- package/json.md +59 -59
- package/list.md +347 -347
- package/map.md +222 -222
- package/marshal.md +12 -12
- package/number.gr +119 -5
- package/number.md +503 -261
- package/option.md +141 -141
- package/package.json +2 -2
- package/path.gr +82 -65
- package/path.md +210 -141
- package/pervasives.md +238 -238
- package/priorityqueue.md +112 -112
- package/queue.md +117 -117
- package/random.md +37 -37
- package/range.md +36 -36
- package/rational.md +107 -107
- package/regex.md +91 -91
- package/result.md +102 -102
- package/runtime/atof/decimal.md +6 -6
- package/runtime/compare.md +7 -7
- package/runtime/dataStructures.md +178 -178
- package/runtime/equal.md +7 -7
- package/runtime/exception.md +15 -15
- package/runtime/malloc.md +9 -9
- package/runtime/numbers.md +269 -269
- package/runtime/string.md +17 -17
- package/runtime/unsafe/conv.md +6 -6
- package/runtime/unsafe/memory.gr +2 -19
- package/runtime/unsafe/memory.md +10 -10
- package/runtime/utf8.md +31 -31
- package/runtime/wasi.md +9 -9
- package/set.md +211 -211
- package/stack.md +122 -122
- package/string.md +228 -228
- package/uint16.md +148 -148
- package/uint32.md +192 -192
- package/uint64.md +192 -192
- package/uint8.md +148 -148
- package/uri.md +77 -77
- package/wasi/file.md +269 -269
- package/wasi/process.md +21 -21
- package/wasi/random.md +9 -9
- package/wasi/time.md +12 -12
package/runtime/atof/decimal.md
CHANGED
|
@@ -19,12 +19,12 @@ record Decimal {
|
|
|
19
19
|
|
|
20
20
|
Fields:
|
|
21
21
|
|
|
22
|
-
|name|type|description|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
| name | type | description |
|
|
23
|
+
| -------------- | ------- | ----------------------------------------------------------------------- |
|
|
24
|
+
| `numDigits` | `Int32` | The number of significant digits in the decimal. |
|
|
25
|
+
| `decimalPoint` | `Int32` | The offset of the decimal point in the significant digits. |
|
|
26
|
+
| `truncated` | `Bool` | If the number of significant digits stored in the decimal is truncated. |
|
|
27
|
+
| `digits` | `Bytes` | Buffer of the raw digits, in the range [0, 9]. |
|
|
28
28
|
|
|
29
29
|
## Values
|
|
30
30
|
|
package/runtime/compare.md
CHANGED
|
@@ -23,14 +23,14 @@ Provides a consistent ordering over all types and is suitable for sorting and ot
|
|
|
23
23
|
|
|
24
24
|
Parameters:
|
|
25
25
|
|
|
26
|
-
|param|type|description|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
| param | type | description |
|
|
27
|
+
| ------ | ---- | ------------------ |
|
|
28
|
+
| `num1` | `a` | The first operand |
|
|
29
|
+
| `num2` | `a` | The second operand |
|
|
30
30
|
|
|
31
31
|
Returns:
|
|
32
32
|
|
|
33
|
-
|type|description|
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
| type | description |
|
|
34
|
+
| -------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
35
|
+
| `Number` | A negative integer if the first operand is less than the second operand, `0` if they are equal, or a positive integer otherwise |
|
|
36
36
|
|