Folkert
fbb711b2ca
Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel
2021-05-24 15:11:40 +02:00
Richard Feldman
a7518a675a
Clean up some clippy warnings
2021-05-23 20:28:23 -04:00
Richard Feldman
8666a2ad58
Avoid recomputing loop termination condition
...
LLVM might take care of this for us, but just to be safe!
2021-05-22 14:51:19 -04:00
Folkert
f0fc8a268f
cleanup
2021-05-22 17:26:01 +02:00
tarjei
e062bdaad8
Fix dec ref for empty list
2021-05-22 00:54:03 +02:00
tarjei
85e5b0ff82
Fix most of deref logic
...
Still doesn't handle empty lists properly.
2021-05-21 21:53:55 +02:00
Folkert
8f55706d5d
fix list gen tests
2021-05-19 22:45:30 +02:00
Folkert
f3199ed2a7
work on dicts
2021-05-19 22:32:31 +02:00
Folkert
d01d539d6b
first pass for List.keep
2021-05-19 21:30:43 +02:00
Folkert
e3b102e0c3
fix List.map3
2021-05-19 16:41:12 +02:00
Folkert
d2b0ecdd04
fix List.map2
2021-05-19 16:07:50 +02:00
Folkert
87b9f866d3
WIP fixing the borrowing in HOFs
2021-05-19 15:28:20 +02:00
tarjei
f45d89270b
Implement basic List.drop that satisfies tests
...
Issues with uniqueness and copying which leaks memory obviously needs to be fixed.
2021-05-18 22:59:55 +02:00
Folkert
04968d6394
fix closure RC increments
2021-05-18 21:34:37 +02:00
Folkert
8dddf952a8
WIP List.map + RC'd closure troubles
2021-05-17 19:31:52 +02:00
Folkert
917acac843
Merge remote-tracking branch 'origin/increment-many' into specialize-lowlevel
2021-05-16 21:57:15 +02:00
Folkert
4afd3cfce6
fixup
2021-05-16 21:32:45 +02:00
Folkert
de7b06e411
refactor + clippy
2021-05-16 21:17:34 +02:00
Folkert
3ca6ffade9
make List.map borrow based on passed function
2021-05-16 14:09:39 +02:00
Folkert
27f8465e9c
clippy
2021-05-15 23:59:54 +02:00
Folkert
80423bac76
fix copy mistake
2021-05-14 12:56:35 +02:00
Folkert
fd422ab1d2
remove dead code
2021-05-14 12:49:15 +02:00
Folkert
087ee18f09
use macros in preparation for lambda set inference
2021-05-14 12:42:25 +02:00
Folkert
ca78439756
working Set.walk
2021-05-14 12:35:44 +02:00
Folkert
d25b1dc549
fix final list test
2021-05-14 01:02:16 +02:00
Folkert
1ee1a8114b
more builtins
2021-05-14 00:41:39 +02:00
Folkert
f39bc34b8f
add closure union to some builtins
2021-05-14 00:25:29 +02:00
Folkert
2163e01288
lowlevel List.map works
2021-05-13 19:15:17 +02:00
Folkert
e63eea7389
WIP
2021-05-13 00:26:41 +02:00
Eric Henry
eda462c6e9
implement list.concat in zig
2021-05-08 14:39:06 -04:00
Richard Feldman
29633f03d1
Merge remote-tracking branch 'origin/trunk' into module-level-documentation
2021-05-02 22:20:41 -04:00
Richard Feldman
83dde26cd0
Fix Str.startsWithCodePoint docs
2021-05-02 22:16:58 -04:00
Richard Feldman
465c5fa18a
Merge pull request #1260 from rtfeldman/parse-str
...
implement startsWithCodePoint
2021-05-02 22:15:53 -04:00
Chadtech
0e39675d68
Add Usv type to Str exports, and reformat Str interface generally
2021-05-02 14:31:17 -04:00
Chadtech
cf06eb8737
Add Bytes type to Bytes.roc
2021-05-02 14:29:57 -04:00
Folkert
c071cfba13
implement startsWithCodePoint
2021-05-02 19:26:08 +02:00
Richard Feldman
4533ee034c
Add Str.chompCodePoint
2021-05-02 12:15:14 -04:00
Richard Feldman
9351dc3d14
Revise Str.parseGrapheme docs
2021-05-02 12:10:39 -04:00
Richard Feldman
0f5958781f
Add Str.startsWithCodePoint and Str.parseCodePoint
2021-05-02 12:10:39 -04:00
Richard Feldman
4d1571c39d
Drop Num.endi
...
It's [not portable](https://doc.rust-lang.org/std/primitive.u32.html#method.to_ne_bytes ),
and apparently (in a Rust discussion somewhere) it's been said that the
host endianness is very rarely useful in user code. Given all that, it seems
reasonable to leave it up to platforms to expose it (or not).
2021-05-02 12:10:39 -04:00
Richard Feldman
e5ebf9c4ef
Add Byte Order Mark concept
2021-05-02 12:10:39 -04:00
Richard Feldman
877cc328d2
Move things into roc/bytes and roc/unicode
2021-05-02 12:10:39 -04:00
Folkert
839095942d
reallocate in strings
2021-05-01 23:16:34 +02:00
Folkert
b79230c069
refactor reallocate
2021-05-01 23:16:34 +02:00
Folkert
314b7e41fd
use realloc in List.append
2021-05-01 22:01:18 +02:00
Folkert
586727f74a
list single in zig
2021-05-01 16:38:11 +02:00
Richard Feldman
81014c3790
First-class Usv type
2021-04-29 21:41:04 -04:00
Richard Feldman
391a4f13db
Revise parser APIs a bit
2021-04-29 20:26:18 -04:00
Richard Feldman
2181558e69
Delete obsolete doc
2021-04-29 19:49:38 -04:00
Richard Feldman
d055a0e659
Revise parsing functions
2021-04-28 21:48:09 -04:00