Folkert
c5005d3dd1
Merge remote-tracking branch 'origin/trunk' into partialproc-by-reference
2021-11-03 15:32:39 +01:00
Folkert
bc71cf53d6
simplify capturing closure IR gen
2021-11-03 14:26:14 +01:00
Folkert
a15183a7d1
refactor
2021-11-03 14:09:04 +01:00
Anton-4
a3fc724df3
removed unused maplit
2021-11-03 10:50:25 +01:00
Kevin Sjöberg
3fbb081f75
Correct comment of List.map3 signature
2021-10-31 21:08:41 +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
329c035e24
fix comment
2021-10-27 20:31:07 -06:00
Tim Whiting
c721a1cc1f
add builtin List.min
2021-10-27 20:28:34 -06:00
Folkert de Vries
29bd4e3e50
Merge branch 'trunk' into str_trim
2021-10-26 22:45:32 +02:00
Dan Knutson
7ed37bf544
use lowlevel_n helper
2021-10-25 20:22:37 -05:00
Dan Knutson
e1b9699272
remove TODO tags
2021-10-25 20:22:37 -05:00
Dan Knutson
e7523ad41d
add Roc wiring
2021-10-25 20:22:37 -05:00
Chelsea Troy
789cc5acc0
cargo fmt
2021-10-25 00:28:50 -05:00
Chelsea Troy
063d7b178b
Figured out why dropLast call was producing an argument mismatch:
...
- Although list_drop_last's LowLevel operation modeling (body) was correct, the defn() CALLED that body with an extra argument for index (a copy-paste error from dropAt).
- List.dropAt works now :)
2021-10-25 00:06:37 -05:00
Chelsea Troy
9633a5adaa
Fix the build, but List.dropLast itself still doesn't work.
2021-10-23 00:29:13 -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
Folkert
4152519bfb
formatting & catch zig overflow error
2021-10-17 18:03:40 +02:00
Chelsea Troy
0cc6e44d35
Thread through the divCeil implementation from Zig:
...
+ OPEN QUESTION: Evidently the Zig implementation can throw an overflow error. Do we want to do something in Roc to fix this?
2021-10-17 10:46:16 -05:00
Richard Feldman
a0887da6ca
Merge pull request #1645 from rtfeldman/list-walk-flip
...
Reorder List.walk arguments
2021-10-10 08:38:20 -04:00
Folkert
94e8c62613
make things compile, base64 has a memory leak
2021-10-06 22:57:11 +02:00
Richard Feldman
90401477c9
Fix List.walkUntil arg order
2021-10-06 07:32:56 -04:00
Richard Feldman
8391c337ab
Merge remote-tracking branch 'origin/trunk' into list-walk-flip
2021-10-05 20:50:50 -04:00
Anton-4
ab665b7380
Merge branch 'trunk' of github.com:rtfeldman/roc into docs_markup
2021-10-05 11:58:45 +02:00
Dan Knutson
3baff93a97
add first version of List.dropAt
...
* adds an implementation with no uniqueness/mutability
2021-10-03 13:55:11 -05:00
Eric Correia
8272ea876f
Get it all to compile!
2021-10-02 13:48:07 -04:00
Anton-4
f63c276a5f
docs flow working with mocked markup to html
2021-10-01 18:22:27 +02:00
Kofi Gumbs
b32a42f05a
Add Str.repeat builtin
2021-09-29 17:32:42 -04:00
Folkert
b257a24edf
don't canonicalize Apply arguments twice
2021-09-22 21:16:40 +02:00
Richard Feldman
71a678c092
Update Dict.walk to match List.walk
2021-08-30 23:05:15 -04:00
Richard Feldman
1abebb7713
Reorder args for List.walk and friends
2021-08-30 22:45:10 -04:00
Folkert
1ca0b797ea
make Dict.len return a nat
2021-08-29 23:04:20 +02:00
Folkert
de7db3e730
make more things infer as NAT
2021-08-29 13:31:55 +02:00
Jared Ramirez
ced4307b46
Fix can tests
2021-08-26 11:39:21 -07:00
Jared Ramirez
4b2a63fb30
Merge branch 'trunk' of https://github.com/rtfeldman/roc into store-dec-as-str
2021-08-26 11:23:17 -07:00
Folkert
6a43be26d3
fix usize vs. u32/u64 conflict
2021-08-25 20:58:42 +02:00
Joshua Hoeflich
b57ebb6229
Remove castToNat
2021-08-19 16:11:21 -05:00
Jared Ramirez
d69b9173fc
Also store f64 for things like pattern comparisons, etc
2021-08-18 17:18:13 -07:00
Joshua Hoeflich
99feb7ce67
Fix typo in comment
2021-08-18 18:23:19 -05:00
Joshua Hoeflich
2672c8ed10
NumBytesToU16 and NumBytesToU32 tested
2021-08-18 17:39:59 -05:00
Joshua Hoeflich
a4197d073c
bytesToU16 and bytesToU32 have proper types
2021-08-18 15:46:53 -05:00
Joshua Hoeflich
b4f575736b
castToNat working
2021-08-18 11:31:48 -05:00
Jared Ramirez
adabf70132
[WIP] Update can & pattern to store numbers as validated strs
2021-08-16 16:16:10 -07:00
Joshua Hoeflich
22e781259d
TODO: Actually implement the functions
2021-08-14 19:28:13 -05:00
Joshua Hoeflich
9dad304e95
Passing arguments successfully to bytesToU16
2021-08-14 19:11:27 -05:00
Joshua Hoeflich
c8f6762deb
Switch from floats to usize
2021-08-14 18:30:43 -05:00
Joshua Hoeflich
744fefc3a1
Fixed: Actually calling llvm we generate
2021-08-14 18:20:11 -05:00
Joshua Hoeflich
ff2c3d7945
Dummy implementation that doesn't do what we want
2021-08-14 17:59:53 -05:00
Folkert
24ddc4b1e8
further optimizations
2021-08-13 13:25:36 +02:00