KilianVounckx
8b85f966fd
Merge branch 'roc-lang:main' into list-update
2023-06-01 11:16:33 +02:00
Anton-4
f6b76f2df5
Num.exp is Num.pow now
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-05-31 15:28:31 +02:00
KilianVounckx
c22a9ef8b5
Merge branch 'roc-lang:main' into list-update
2023-05-30 08:54:26 +02:00
Kilian Vounckx
8371c060a0
Expose update function
2023-05-29 10:14:01 +02:00
Kilian Vounckx
8dee7aeab3
Add List update function with tests and documentation
2023-05-28 20:36:27 +02:00
Brendan Hansknecht
e8952dfc71
switch Dict to real tuples
2023-05-26 15:39:42 -07:00
Ayaz Hafiz
3585d5bb5b
Implement hash for Dec
2023-05-26 11:38:30 -05:00
Brendan Hansknecht
0b475ae979
Merge pull request #5445 from roc-lang/dict-pseudo-seed
...
Seed Dict and Set
2023-05-26 16:19:15 +00:00
Fábio Beirão
35820414c1
Add Types header on the List module
2023-05-26 14:01:02 +02:00
Fábio Beirão
7d84334822
Further "returns" consistency on the Num module
2023-05-26 13:57:18 +02:00
Fábio Beirão
028f28c731
Fix denominator typo
2023-05-26 13:44:59 +02:00
Fábio Beirão
9f6d8d02f7
Return/Returns Add/Adds .. consistency for the Num module
2023-05-26 13:44:30 +02:00
Fábio Beirão
00ee063095
Return/Returns consistency for the Num module
2023-05-26 13:38:34 +02:00
Fábio Beirão
ad6bd540a7
Remove redundant can
...
Better readability, IMO.
2023-05-26 13:38:33 +02:00
Fábio Beirão
658491fe52
Fix typo, these savings instead of this savings
2023-05-26 13:38:33 +02:00
Fábio Beirão
fbbe2f6294
Fix U8 example, 2^8 instead of 2^16 numbers
2023-05-26 12:25:15 +02:00
Fábio Beirão
684fa4a0c7
Return/Returns consistency for the Result module
2023-05-26 12:18:48 +02:00
Fábio Beirão
8e9569c81e
Return/Returns consistency for the Box module
2023-05-26 12:11:24 +02:00
Fábio Beirão
698c9715af
Use serialize instead of serialise
...
The rest of the documentation prefers the en-US spelling
2023-05-26 10:16:47 +02:00
Fábio Beirão
03f4798d5a
Typo in Json module: exchange
2023-05-26 10:15:46 +02:00
Fábio Beirão
07568df92b
Use optimization instead of optimisation
2023-05-26 10:11:43 +02:00
Fábio Beirão
0c3bb35d66
Remove unnecessary hashes from Dict docs
2023-05-26 10:08:14 +02:00
Fábio Beirão
fb141af353
Typo: it's/its capacity
2023-05-26 10:05:24 +02:00
Fábio Beirão
fd68772b4d
Whitespace preventing consistent format
2023-05-26 10:05:04 +02:00
Fábio Beirão
3b7245f980
Typo in "particular case"
2023-05-26 10:04:43 +02:00
Fábio Beirão
e5e68266f9
Fix small typo on List module
2023-05-26 09:58:57 +02:00
Fábio Beirão
d60f1deebc
Fix small typos on Num module
2023-05-26 09:44:31 +02:00
Fábio Beirão
364208f37c
Fix small typo on Num.div
2023-05-26 00:06:27 +02:00
Brendan Hansknecht
b4c359588e
Seed Dict and Set
...
This changes Dict and Set to have a compilation depedent seed.
The seed is not exposed to userland in anyway.
This gets a much more DOS resistant Dict and Set with no cost.
2023-05-25 09:55:48 -07:00
Ayaz Hafiz
d5f8af8021
Turn set test back on
2023-05-24 14:13:40 -05:00
Brendan Hansknecht
4cac15eb2b
remove stale comment
2023-05-24 10:48:40 -07:00
Brendan Hansknecht
877be563ba
add Hash and Eq to Dict and Set
2023-05-24 10:38:47 -07:00
Luke Boswell
4d4cfcf981
merge remote/main and update mono tests
2023-05-15 16:51:56 +10:00
Basile Henry
b8aaaaabda
Implement builtins for Num.isNan, Num.isInfinite, and Num.isFinite
...
Closes #5310 and closes #5309
2023-05-03 09:33:28 +01:00
Richard Feldman
27113b5ace
Merge pull request #5342 from agu-z/agu-z/fix-list-intersperse-docs
...
Fix `List.intersperse` docs example
2023-04-28 23:43:39 -04:00
Agustin Zubiaga
9b5cee7633
Fix List.intersperse docs example
2023-04-28 21:33:34 -03:00
Luke Boswell
2ff55b9704
optimise encodeString for when no escapes, add more tests various
2023-04-23 13:24:41 +10:00
Luke Boswell
eef3adcbbb
improve decodeString
2023-04-23 09:44:57 +10:00
Luke Boswell
ad9aadeb64
add more List.withCapacity optimisation
2023-04-21 14:28:09 +10:00
Luke Boswell
2b95731a5c
support null decoding, add optmisation for strig encoding
2023-04-21 14:24:32 +10:00
Luke Boswell
70de4b90dc
clean up complex example test, remove duplication
2023-04-21 14:05:41 +10:00
Luke Boswell
b71126b2ef
add encoding for field names, add encoding for string escapes
2023-04-21 14:00:21 +10:00
Luke Boswell
da5484941c
update record Encoding to use field map config
2023-04-21 13:28:25 +10:00
Luke Boswell
4f22b0747f
mono and update Json.fromUtf8 and Json.toUtf8 to Json.json
2023-04-21 10:57:48 +10:00
Luke Boswell
d8545d7556
add support for decoding various stragies, add complex test
2023-04-21 10:51:37 +10:00
Luke Boswell
bf815d5ad2
WIP update to use config in Json
2023-04-21 08:56:35 +10:00
Folkert de Vries
8c32900e19
Merge pull request #5275 from wontem/abs_diff
...
Implement Num.absDiff
2023-04-20 14:02:02 +02:00
Kiryl Dziamura
f1564458a3
Format roc
2023-04-20 11:55:40 +02:00
Luke Boswell
ab4ac1c494
merge remote/main and update mono
2023-04-20 07:55:18 +10:00
Richard Feldman
412e199939
Merge pull request #5266 from lukewilliamboswell/docs
...
Add documentation for `Decode` builtin
2023-04-14 16:46:35 -04:00