Commit graph

929 commits

Author SHA1 Message Date
Kevin Sjöberg
0e500ba33c Document List.any 2021-11-07 20:43:28 +01:00
ayazhafiz
0d2ed76334 Implement List.joinMap
Closes #1887
2021-11-07 11:08:20 -05:00
Folkert de Vries
c0c2c1341c
Merge branch 'trunk' into fix-str-from-int 2021-11-07 00:00:21 +01:00
Folkert
75c090fd24 cleanup 2021-11-06 23:57:21 +01:00
Folkert
a31279a2c6 generate wasm32 object file 2021-11-06 23:03:46 +01:00
Anton-4
69f6ffadab
Merge branch 'trunk' into deps 2021-11-06 18:07:34 +01:00
Kevin Sjöberg
f6d055dc62 Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
Kevin Sjöberg
491a480371 Implement Str.fromInt for any integer type 2021-11-06 14:55:27 +01:00
Richard Feldman
3df3e2f0d5
Merge branch 'trunk' into deps 2021-11-06 07:19:02 -04:00
Chelsea Troy
208bce563a
Merge branch 'trunk' into dropfirst-builtin 2021-11-05 23:34:46 -05:00
Brendan Hansknecht
bddc08c977 Remove unused dependencies 2021-11-05 16:58:11 -07:00
Eric Newbury
f3a350dd74 add dropFirst builtin 2021-11-05 16:12:29 -04:00
Anton-4
a3fc724df3 removed unused maplit 2021-11-03 10:50:25 +01:00
Folkert
7cd5d41b35 bump varid for closure var (List.map4 used so many variables that they interfered 2021-11-01 10:34:34 +01:00
Kevin Sjöberg
f9ed060e49 Implement List.map4 2021-10-31 21:08:41 +01:00
Chelsea Troy
4afaf96aea
Add List.max builtin 2021-10-30 19:17:35 -05:00
Folkert de Vries
aa978ae6d9
Merge branch 'trunk' into list_min 2021-10-28 20:32:27 +02:00
Tim Whiting
c721a1cc1f add builtin List.min 2021-10-27 20:28:34 -06:00
Dan Gieschen Knutson
02117ba512
Merge branch 'trunk' into str_trim 2021-10-27 18:01:29 -05:00
Dan Knutson
bf29639d87 deinit a string that has been trimmed to nothing 2021-10-27 17:58:30 -05:00
Locria Cyber
791c46fe0d Remove deprecated zig features 2021-10-26 20:21:55 -04:00
Folkert de Vries
29bd4e3e50
Merge branch 'trunk' into str_trim 2021-10-26 22:45:32 +02:00
Chelsea Troy
7680a1d17a
Remove unused code 2021-10-25 21:55:45 -05:00
Dan Knutson
12d35ba9f1 work around all test strings being static 2021-10-25 20:22:37 -05:00
Dan Knutson
bf1b597369 use nullable index for reverse iterator 2021-10-25 20:22:37 -05:00
Dan Knutson
6f49f355dd clean up conditionals, use RocStr.init 2021-10-25 20:22:37 -05:00
Dan Knutson
1de0e5d99b make test fail for missed small string conversion 2021-10-25 20:22:37 -05:00
Dan Knutson
438ffdb18e restore changes to builtins readme 2021-10-25 20:22:37 -05:00
Dan Knutson
e1b9699272 remove TODO tags 2021-10-25 20:22:37 -05:00
Dan Knutson
ab060a95b8 add TODO for incorrect unique Roc tests 2021-10-25 20:22:37 -05:00
Dan Knutson
ca48d17dbc add Roc-level shared case tests 2021-10-25 20:22:37 -05:00
Dan Knutson
6832f952d1 undo changes to builtins README 2021-10-25 20:22:37 -05:00
Dan Knutson
188de22d8d explain back iterator 2021-10-25 20:22:37 -05:00
Dan Knutson
e21fa3cb0a add zig test cases 2021-10-25 20:22:37 -05:00
Dan Knutson
6f7a26895a handle small strings correctly 2021-10-25 20:22:37 -05:00
Dan Knutson
13fd72f3d8 thrashing 2021-10-25 20:22:37 -05:00
Dan Knutson
46365da73a add failing tests
* SIGSEGV for non-empty strings
2021-10-25 20:22:37 -05:00
Dan Knutson
e7523ad41d add Roc wiring 2021-10-25 20:22:37 -05:00
Dan Knutson
c8287032b6 use reverse utf8 iterator for trailing whitespace 2021-10-25 20:22:37 -05:00
Dan Knutson
8bf252a56e use mutation for the unique case 2021-10-25 20:22:37 -05:00
Dan Knutson
024a902579 add a slow zig impl 2021-10-25 20:22:37 -05:00
Dan Knutson
fdac5e2bd8 add isWhitespace helper 2021-10-25 20:22:37 -05:00
Chelsea Troy
fd83c3b749
Branch the dropLast functionality from dropAt, inserting an index gathered by subtracting 1 from the list length 2021-10-23 00:17:08 -05:00
Chelsea Troy
49a832d757
Add dropLast to tests and parser 2021-10-21 23:02:26 -05:00
Folkert
76e26e47f3 more cleanup 2021-10-20 17:05:59 +02:00
Folkert
7735ca21ea cleanup 2021-10-20 17:03:55 +02:00
Folkert
a072d8d1b1 fix things 2021-10-20 16:56:04 +02:00
Folkert
63b1aaad4e hook up polymorphic zig builtins 2021-10-20 16:43:39 +02:00
Folkert
ab34c2a55e generalize all number intrinsics 2021-10-20 16:21:57 +02:00
Folkert
9fc832d8ef new intrinsic approach 2021-10-20 15:18:02 +02:00