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
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
Dan Knutson
3baff93a97
add first version of List.dropAt
...
* adds an implementation with no uniqueness/mutability
2021-10-03 13:55:11 -05:00
Kofi Gumbs
b32a42f05a
Add Str.repeat builtin
2021-09-29 17:32:42 -04: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
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
574e07807e
turn lt into lte
2021-08-11 00:22:15 +02:00
Joshua Hoeflich
29228972c9
Renaming
2021-08-10 10:54:19 -05:00
Joshua Hoeflich
05d87314e7
Consistently triggering null pointer bug
2021-08-10 10:51:15 -05:00
Joshua Hoeflich
ba360a2dd2
Test passing in debug but not release
2021-08-09 22:03:01 -05:00
Joshua Hoeflich
8c13fecc64
Fix name
2021-08-09 20:26:27 -05:00
Joshua Hoeflich
b99a0ae953
Typo fix
2021-08-09 19:51:20 -05:00
Joshua Hoeflich
04f65bed51
Bump comment
2021-08-09 19:31:27 -05:00
Joshua Hoeflich
ae38a0d3ff
Cargo fmt
2021-08-08 21:41:00 -05:00
Joshua Hoeflich
c00d400d85
Fixes merge conflict
2021-08-08 21:38:15 -05:00
Joshua Hoeflich
4231b340ee
Glue code working
2021-08-08 11:06:10 -05:00
Richard Feldman
2a616103c6
Rename Str.toBytes to Str.toUtf8
2021-08-07 22:46:24 -04:00
Richard Feldman
267836226c
s/CodePoint/CodePt/g
2021-08-07 21:46:20 -04:00
Folkert
2b5ec3dcf1
centralize overflow error reporting
2021-07-18 20:50:15 +02:00
Folkert
02bc0036ab
fix wrong tag name used in Dict.get
2021-06-13 16:54:37 +02:00
Richard Feldman
1bd3f12776
Fix a bunch of Int docs
2021-06-03 21:31:47 -04:00
tarjei
ade591dd10
Fix plumbing
2021-05-29 22:21:25 +02:00
tarjei
107822a5cc
Add plumbing for List.swap
2021-05-29 21:30:16 +02:00