Ayaz Hafiz
f458da0cbc
Implement Hash for Bool
2023-03-28 15:04:45 -05:00
Ayaz Hafiz
92aff265ae
Add doc comment to Decode.record
2023-03-22 12:19:20 -05:00
Ayaz Hafiz
0b3ee77232
Add in Decode.tuple ability member
2023-03-22 12:18:04 -05:00
Ayaz Hafiz
a361c4cfc1
Add the tuple
ability member to EncoderFormatting
2023-03-22 11:14:46 -05:00
Seth Workman
dccb1be5b5
fix naming to be relevant to example
2023-03-17 08:36:50 -05:00
Seth Workman
fea1cfa57d
fix walkUntil test/example and formatting
2023-03-17 08:33:01 -05:00
Seth Workman
f912c39a04
add docs/tests to Dict builtin
2023-03-16 22:44:50 -05:00
Brendan Hansknecht
48f17a8e2c
add Str.releaseExcessCapacity
2023-03-15 15:24:59 -07:00
Luke Boswell
dd0fdd5d74
roc format
2023-03-15 18:54:46 +11:00
Luke Boswell
2241b173bf
return markdown headings to preserve structure
2023-03-15 18:30:44 +11:00
Luke Boswell
90dd31aaca
update mono
2023-03-15 18:24:16 +11:00
Luke Boswell
91604f8be6
return structure using <h2> elements, fix css
2023-03-15 18:19:33 +11:00
Luke Boswell
ca2158edbb
simplify Set examples
2023-03-15 18:12:17 +11:00
Luke Boswell
5dde76c4ba
modify examples
2023-03-15 18:09:59 +11:00
Luke Boswell
ef0de4c72f
merge builtin-json
2023-03-15 18:07:01 +11:00
Luke Boswell
1fe56bcefb
adds docs for Json
2023-03-15 16:30:39 +11:00
Luke Boswell
d8d3d252f1
fix empty list test
2023-03-15 09:56:33 +11:00
Luke Boswell
28951a7a16
spellcheck
2023-03-14 19:39:53 +11:00
Luke Boswell
d2bb434092
roc format
2023-03-14 18:36:12 +11:00
Luke Boswell
213111ca55
minor doc fixes, add docs for Set
2023-03-14 18:33:59 +11:00
Brendan Hansknecht
1319ba4844
add List.releaseExcessCapacity builtin
2023-03-13 17:43:21 -07:00
Brendan Hansknecht
5d87ba3441
remove outdated performance comments
2023-03-13 14:08:24 -07:00
Brendan Hansknecht
1c0b001897
run roc format
2023-03-12 08:53:11 -07:00
Brendan Hansknecht
e6964536b2
add more Num.bytesTo* functions
2023-03-12 08:41:05 -07:00
Brendan Hansknecht
785da377c8
add Num.count*Bits functions
2023-03-12 08:41:04 -07:00
Richard Feldman
512b9361bf
Merge pull request #5077 from lukewilliamboswell/builtin-json
...
JSON decoder improvements
2023-03-11 15:28:07 -05:00
Anton-4
e2bd3cfc8b
forgotten code fence
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-03-10 11:32:12 +01:00
Luke Boswell
14085c71a3
remove commented out builtin code
2023-03-10 10:15:05 +11:00
Anton-4
38ed9339b1
Merge branch 'main' into docs-highlight
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-03-08 15:51:03 +01:00
Anton-4
3431d46573
adjust indent
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-03-08 14:50:10 +01:00
Agus Zubiaga
7eedd62844
Fix List.splitFirst
and List.splitLast
docs
...
The examples in the docs appear to expect `List.splitFirst` to exclude occurrences of the delimiter in the `after` list:
```
List.splitFirst [Foo, Z, Bar, Z, Baz] Z == Ok { before: [Foo], after: [Bar, Baz] }
```
However, only the first occurrence of the delimiter in the `before` list. The `after` list contains everything after the first occurrence of the delimiter.
```
List.splitFirst [Foo, Z, Bar, Z, Baz] Z == Ok { before: [Foo], after: [Bar, Z, Baz] }
```
The same applies to `List.splitLast`
Signed-off-by: Agus Zubiaga <hi@aguz.me>
2023-03-08 10:18:42 -03:00
Luke Boswell
ae6f9067b6
fix Roc formatting
2023-03-08 18:11:49 +11:00
Luke Boswell
890f3db10a
update to support fenced code
2023-03-08 17:30:30 +11:00
Luke Boswell
5ead576976
fix indentation for code blocks
2023-03-06 22:32:25 +11:00
Luke Boswell
5933d6b7e7
improve Json test coverage and fix decoding bugs
2023-03-05 17:00:10 +11:00
Luke Boswell
91adf0f411
Merge remote-tracking branch 'origin/main' into builtin-json
2023-03-05 15:58:58 +11:00
Richard Feldman
82663fd30d
Merge pull request #5076 from roc-lang/fix-list-range
...
Fix List.range crashing
2023-03-01 19:29:24 -05:00
Luke Boswell
58d4faa0da
handle escapes in JSON string decoder
2023-02-28 20:53:57 +11:00
Brendan Hansknecht
c4d56f1dc9
update formatting
2023-02-27 16:43:35 -08:00
Brendan Hansknecht
f77d1dcd6b
fix List.range so that it will only crash when Length is too large
2023-02-27 16:01:05 -08:00
Folkert
44f08f9e47
implement sqrt and log in the dev backend
2023-02-26 21:41:25 +01:00
Luca Cervello
a4410fe052
fix: add spaces around ? in optional record field
2023-02-08 18:41:22 +01:00
David Dunn
550b22c633
Fix unicode escape sequences in Str docs
...
Unicode characters are escaped like \u(00) instead of \{0x00}. Tested
that this is the same for the repl and the hello world example
`Stdout.line "Hello,\u(0A)World!"`.
Found the correct syntax here:
304768569
2023-01-31 21:39:57 +04:00
Brian Carroll
a249e14ee5
builtins: restore nicer hash code for Dict
2023-01-23 22:39:24 +00:00
Ayaz Hafiz
b8712bcb30
Weaken records in let-bindings
...
This change also means we must update the interface of `Dict.empty` and
`Set.empty` from
```
Dict.empty : Dict k v
```
to
```
Dict.empty : {} -> Dict k v
```
2023-01-14 15:33:51 +01:00
Richard Feldman
8606faa9db
Move builtin module-level docs to the top
2022-12-26 23:57:27 -05:00
Richard Feldman
5e3d808a61
roc format
2022-12-24 22:32:15 -05:00
Richard Feldman
39f60be377
Add builtins/main.roc for docs generation
2022-12-24 22:32:14 -05:00
Richard Feldman
4452b06b6d
Fix some builtin docs
2022-12-24 22:32:14 -05:00
Richard Feldman
4583985f33
Use a better List.range
example for step
2022-12-09 09:08:38 -05:00