Commit graph

53 commits

Author SHA1 Message Date
Brendan Hansknecht
6dd51039f0
add simple test that nat keys compile 2022-12-05 16:09:17 -08:00
Brendan Hansknecht
ab6c652360
manually do 128 bit multiplication to avoid bitshift and fix wasm tests 2022-12-03 13:17:36 -08:00
Brendan Hansknecht
ae58623f70
use crash to clearify unreachable state 2022-12-03 13:17:36 -08:00
Brendan Hansknecht
b4b18cda5a
fix formatting 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
ac2380f6c8
swap based on dataIndex not raw hash map index 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
8a30615a20
fix swap remove ordering 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
4befccc6b4
expand Set test cases 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
cad7d8b4e9
add walkUntil and use it to implement set equality 2022-12-03 13:17:35 -08:00
Brendan Hansknecht
28835d5bf3
some bug fixes 2022-12-03 13:17:34 -08:00
Brendan Hansknecht
4fc0dd9dd9
add a some tests and bug fixes 2022-12-03 13:17:34 -08:00
Brendan Hansknecht
02824e92fe
add Set implementation 2022-12-03 13:17:34 -08:00
Brendan Hansknecht
cb08dca6f1
Add an indexmap like dict to roc 2022-12-03 13:17:34 -08:00
Richard Feldman
ed82e80a2b
Drop unnecessary isEq true 2022-11-03 23:16:30 -04:00
Richard Feldman
ee9b62d8ae
Don't use backpassing on List.any 2022-11-03 23:16:28 -04:00
Christopher Duncan
c0822fdab2
Remove iterate from exported functions 2022-11-02 16:47:09 -04:00
Ayaz Hafiz
cfe7c8e5ef
Warn on the presence of unnecessary wildcards in output positions 2022-10-31 09:38:20 -05:00
Luke Boswell
90a9103413
fix doc comments examples breaking tests 2022-10-25 21:20:00 +11:00
Luke Boswell
344ffc5542
fix the formatting for CI 2022-10-25 19:28:49 +11:00
Anton-4
c7e46df57d
minor corrections
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-25 10:00:33 +02:00
Luke Boswell
01da174c2f
Merge remote-tracking branch 'upstream/main' into std-docs-box-and-dict 2022-10-25 18:15:14 +11:00
Luke Boswell
3d2bdff0e1
adding more descriptions for Dict.roc 2022-10-25 18:09:00 +11:00
Ayaz
89f14e73a0
Merge pull request #4358 from roc-lang/derive-opaque-defs
Auto-derive ability implementations for opaques in canonicalization
2022-10-24 13:24:51 -05:00
Luke Boswell
d85a493abd
adding more docs for Dict.roc 2022-10-24 20:44:00 +11:00
Luke Boswell
dd586d31a5
updating docs for Box and Dict 2022-10-24 20:00:33 +11:00
Ayaz Hafiz
89def77f01
Use derived Eq impl for Dict and Set 2022-10-23 20:48:07 -05:00
Christopher Duncan
a627a47709
Add Dict module to the testing CI 2022-10-23 08:37:59 -04:00
Ayaz Hafiz
f826ff1a71
Remove addI* variants from Hash
These are trivially fulfilled by converting a signed int to its unsigned
repr and hashing that.
2022-10-19 14:24:21 -05:00
Ayaz Hafiz
12ecdab4c5
Add listGetUnsafe to Dict.roc rather than exposing from list 2022-10-14 13:43:31 -05:00
Brendan Hansknecht
5a86f611fa
add some TODOs 2022-10-14 07:55:07 -07:00
Brendan Hansknecht
d87a750f7c
misc cleanup 2022-10-14 07:45:50 -07:00
Brendan Hansknecht
bb26844cf1
add tests for Hash.hashStrBytes and Hash.hashUnordered 2022-10-14 07:45:50 -07:00
Brendan Hansknecht
382eaf88c2
add a bunch of tests 2022-10-14 07:45:50 -07:00
Brendan Hansknecht
e937a9078c
add Hasher.reset and Hash.hashUnordered 2022-10-14 07:45:50 -07:00
Brendan Hansknecht
ab16effa00
correct lengths 2022-10-14 07:45:50 -07:00
Brendan Hansknecht
49c3fe1643
add version of wyhash to roc lib 2022-10-14 07:45:49 -07:00
Ayaz Hafiz
a256947a9f
Move Eq to Bool 2022-10-12 16:37:51 -05:00
Ayaz Hafiz
7298705db7
Fix parse error 2022-10-12 16:37:50 -05:00
Ayaz Hafiz
c618ced743
Replace Bool.isEq with Eq.isEq 2022-10-12 16:37:49 -05:00
Christopher Duncan
96e12aa790
Add the update function to the Dict module
This resolves #4239
2022-10-09 20:21:21 -04:00
Ayaz Hafiz
5416eb7cbf
List dependencies in the stdlib explicitly rather than hard-coding 2022-10-05 18:53:49 -05:00
kilianv
610c529ba8
Update roc files to use new opaque bools 2022-09-20 14:42:04 -05:00
Richard Feldman
f3b8025d8d
Rename List.find and findIndex to include 'First' 2022-07-25 19:15:32 +02:00
Richard Feldman
f575807834
Merge remote-tracking branch 'origin/trunk' into outdent-infix 2022-07-16 16:08:36 -04:00
Richard Feldman
7ed35eca50
roc format builtins 2022-07-13 23:16:09 -04:00
Folkert
e6019a1eca
formatting 2022-07-13 23:11:58 +02:00
Folkert
cf69d41a7b
implement set operations on dict 2022-07-13 11:33:39 +02:00
Folkert
79f8ae4e69
make Set/Dict mostly work 2022-07-13 11:15:57 +02:00
Folkert
66c0b7d9fd
formatting 2022-07-13 01:00:27 +02:00
Folkert
f9d8e01561
implement Dict/Set completely in roc 2022-07-13 00:35:20 +02:00
Folkert
c3914883be
format our roc code 2022-07-08 15:00:10 +02:00