Commit graph

388 commits

Author SHA1 Message Date
Folkert
1256327caa dict walk 2021-02-14 21:16:42 +01:00
Folkert
02db8f1a05 union and intersection 2021-02-14 19:55:01 +01:00
Folkert
210bd18fe3 implement decref, fuse RC operations 2021-02-14 03:16:11 +01:00
Folkert
b2e626ab0c Dict.insert WIP 2021-02-13 23:32:01 +01:00
Folkert
16143bc06e first steps for Dict.keys and Dict.values 2021-02-13 18:35:36 +01:00
Folkert
e9f2d9d608 work on refcount 2021-02-13 16:41:13 +01:00
Folkert
ac5eb0f6f6 Dict.get 2021-02-13 16:12:45 +01:00
Folkert
afe2f51660 basic versions of contains and remove 2021-02-12 23:47:02 +01:00
Folkert
ee21f86f8f hooking everything up 2021-02-12 17:18:06 +01:00
Folkert
0ed87828e5 Merge remote-tracking branch 'origin/trunk' into dict 2021-02-10 15:02:53 +01:00
Folkert
352008e8a0 use user-provided seed 2021-02-09 22:25:01 +01:00
Jared Ramirez
f3d9c2f2bb Finish first pass of Str.fromUtf8 2021-02-07 20:04:10 -08:00
Jared Ramirez
815f633a58 [WIP] Setup rust side to call Str.fromUtf8 2021-02-07 20:04:10 -08:00
Folkert
c3a681d1f0 fix bug in list repeat type 2021-02-07 02:08:17 +01:00
Folkert
2d63e24843 make hash work for integers/floats/strings 2021-02-06 21:33:56 +01:00
Chadtech
7a64ffede5 Merge branch 'trunk' of github.com:rtfeldman/roc into dict 2021-01-29 21:17:32 -05:00
Folkert
7e89307292 implement Dict.empty 2021-01-25 16:53:11 +01:00
Folkert
48c8343d53 add Str.joinWith 2021-01-25 00:30:48 +01:00
Chadtech
9d776a2de5 rename Dict.size to Dict.len 2021-01-21 23:16:25 -05:00
Chadtech
520dcfbaca Wiring up dictionary and hash rust code to their zig counterparts 2021-01-18 15:25:37 -05:00
Richard Feldman
82101a34e7
Merge pull request #898 from rtfeldman/decision-tree-improvements
Decision tree improvements
2021-01-14 23:53:02 -05:00
Folkert
b3d0c0194d use const 2021-01-14 16:56:15 +01:00
Sébastien Besnier
fdc2b6ad86 add bitwise xor 2021-01-14 16:12:46 +01:00
rvcas
62b496b221 feat(builtins): use Nat for List functions and counting functions 2021-01-05 01:08:56 -05:00
rvcas
b34436e5cb Merge branch 'trunk' into int_a_float_a 2021-01-04 09:53:45 -05:00
Folkert
2ac19fb6e3 add equality for strings 2021-01-02 18:50:29 +01:00
Folkert
81bfea53e2 fix some uniqueness problems 2020-12-31 21:36:49 +01:00
Folkert
4c34312871 fix missing type variable in List.get 2020-12-31 21:26:28 +01:00
rvcas
127c4e1bcc feat: add inner var to IntLiteral and FloatLiteral 2020-12-29 20:52:54 -05:00
rvcas
d62471c73a fix: gen_list 2020-12-29 14:55:52 -05:00
rvcas
75fdff4398 feat(aliases): add Int a and Float a 2020-12-29 13:35:24 -05:00
Richard Feldman
a656778968 Merge remote-tracking branch 'origin/trunk' into overflow_on_mul 2020-12-23 15:37:55 -05:00
Celso Bonutti Filho
f3bd5368f0 feat: adds Num.mulWrap and Num.mulChecked 2020-12-23 13:42:18 -03:00
Celso Bonutti Filho
d3d3497b46 refactor: use function for overflow Tag in std.rs 2020-12-23 13:40:24 -03:00
rvcas
eda5b72060 Merge branch 'trunk' into new_num_layer 2020-12-23 08:24:19 -05:00
Celso Bonutti Filho
ff23ce7bec fixes Num.subWrap on std.rs 2020-12-22 23:30:41 -03:00
Celso Bonutti Filho
fe588c120c adds Num.subChecked 2020-12-22 23:27:16 -03:00
Celso Bonutti Filho
176cdd0274 adds Num.subWrap 2020-12-22 22:17:45 -03:00
rvcas
d08757f161 fix: uniqueness for Num types 2020-12-22 09:05:19 -05:00
rvcas
aa4b376134 add new layer to the Num types 2020-12-22 09:05:19 -05:00
Celso Bonutti Filho
51a302957f adds List.last 2020-12-21 19:44:24 -03:00
Celso Bonutti Filho
0a24f3b4b4 adds Num.bitwiseAnd 2020-12-20 19:55:10 -03:00
Anton-4
b085469602 Replaced large_enum_variant explanation with link to issue #800 2020-12-14 16:09:16 +01:00
Chadtech
6b934c499b Changed Map to Dict in commented out type signatures 2020-12-12 04:26:52 -05:00
Chadtech
2a068941b2 Resolve conflicts 2020-12-08 16:56:52 -05:00
Chadtech
b24933324a Changed Map to Dict in many tests 2020-12-08 16:55:33 -05:00
Chadtech
c376b5d0cc
Merge branch 'trunk' into rename-map-to-dict 2020-12-08 01:33:37 -05:00
rvcas
4987721154 feat(Num): rename Num.Int to Num.I64 2020-12-07 19:17:20 -05:00
Chadtech
197d3c3c81 Changed 'Map' to 'Dict' in many places 2020-12-05 23:26:00 -05:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00