Commit graph

103 commits

Author SHA1 Message Date
Folkert
9473a332db clippy 2021-02-19 19:22:05 +01:00
Folkert
17fddaf0dd refcount details of builtins 2021-02-19 17:13:09 +01:00
Folkert
9faf84be16 correct RC for List.repeat, List.keepIf, List.keepOks 2021-02-19 01:08:33 +01:00
Folkert
d29b8764f0 List.repeat in zig 2021-02-18 23:39:50 +01:00
Folkert
5501580fb3 clippy 2021-02-17 23:45:36 +01:00
Folkert
65ab08728a List.mapWithIndex 2021-02-17 22:29:15 +01:00
Folkert
7bd228ca9b List.contains in Zig 2021-02-17 22:04:54 +01:00
Folkert
a3d0dc2fc3 move bitcode support functions around 2021-02-17 21:52:19 +01:00
Folkert
619749c954 use generic function to define the stepper wrapper 2021-02-17 21:16:00 +01:00
Folkert
3fe80b1a1e List.keepOks and List.keepErrs 2021-02-17 21:03:21 +01:00
Folkert
56427c5fac List.walk in zig 2021-02-17 17:37:06 +01:00
Folkert
7aceb8dc70 List.keepIf in zig 2021-02-17 16:45:21 +01:00
Folkert
42c5662872 List.map in zig! 2021-02-17 15:38:55 +01:00
Folkert
82ff8a8edf clippy 2021-02-15 21:35:52 +01:00
Folkert
9527434be8 Set.walk closure trouble 2021-02-15 02:04:04 +01:00
Richard Feldman
5b83ec719e
Merge branch 'trunk' into gen-equality 2021-02-12 19:37:09 -05:00
Richard Feldman
76a9461cfe
Merge branch 'trunk' into gen-equality 2021-02-12 19:13:01 -05:00
Anton-4
30dca9528c
Merge branch 'trunk' into valgrind_ci 2021-02-12 11:55:35 +01:00
Folkert
56542e41ad fix recursion issue in generic_eq 2021-02-11 16:44:44 +01:00
Folkert
993018b3a5 don't clone list with RC=1 2021-02-10 22:37:51 +01:00
Chadtech
ec7d8e0dc9 Bringing in Trunk and resolving conflict 2021-01-23 21:23:31 -05:00
Folkert
42f63ceac1 update other places 2021-01-22 01:17:57 +01:00
Chadtech
520dcfbaca Wiring up dictionary and hash rust code to their zig counterparts 2021-01-18 15:25:37 -05:00
Folkert
26ce7b6ef0 clippy 2021-01-03 20:10:30 +01:00
Folkert
a7cf98df9b add == and != for lists 2021-01-03 20:09:28 +01:00
Folkert
23ed281345 clippy 2021-01-03 03:14:05 +01:00
Folkert
981a84ccee List.keepIf must consume its list argument 2021-01-02 23:17:50 +01:00
Folkert
728298d15a automatic clippy fixes 2021-01-01 00:05:45 +01:00
Folkert
434c6504df increment result of List.get 2020-12-14 21:30:55 +01:00
Folkert
f00bd9ba01 fix refcount bug
closures were not incremented, but were decremented. This lead to memory corruption
2020-12-13 19:57:51 +01:00
Folkert
4829368ca8 code cleanup 2020-12-03 15:24:15 +01:00
Folkert
0a8415b48e fix closure not decremented 2020-12-02 22:51:16 +01:00
Richard Feldman
a9d4b38e44 Merge remote-tracking branch 'origin/trunk' into zig-str-concat 2020-12-01 21:50:08 -05:00
Folkert
674f336601 clippy things 2020-12-01 23:11:24 +01:00
Folkert
5d00910a38 fix memory leaks in lists 2020-12-01 23:01:17 +01:00
Folkert
af3a4c16f4 List.map can call closures 2020-12-01 15:20:52 +01:00
rvcas
0fb2c4ff8b fix(List): clippy on list_walk and tests for the walk builtin 2020-11-24 13:20:05 -05:00
rvcas
8feab843ea feat(List): add walk function and fix walkBackwards 2020-11-24 09:01:03 -05:00
rvcas
d9e906b8fb feat(List): rename walkRight to walkBackwards 2020-11-23 19:39:30 -05:00
Folkert
2f1ca9decf cleanup 2020-11-21 22:54:57 +01:00
Folkert
8013af7e97 change representation of list/str 2020-11-21 22:50:33 +01:00
Folkert
52772df2c3 improve list allocation 2020-11-21 22:50:31 +01:00
Folkert
fd026ee9d8 clippy 2020-11-19 21:28:35 +01:00
Folkert
45c62dfa3c improve list allocation 2020-11-19 16:11:21 +01:00
Folkert
8528e5affb upgrade inkwell 2020-11-17 01:58:30 +01:00
rvcas
1c8bb74268 feat(List): add sum builtin 2020-11-15 11:08:27 -05:00
Chad Stearns
d41e940b7f Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-11-07 02:07:52 -05:00
lrosa007
39d5221810 pass list_elem_layout down to build_eq 2020-11-05 11:07:07 -05:00
lrosa007
82820ac4a0 no need to clone match on &list_layout 2020-11-05 09:07:02 -05:00
lrosa007
d880293afa remove match cause build_eq can tell if it can't compare the BasicEnumValues 2020-11-05 08:54:12 -05:00