Commit graph

72 commits

Author SHA1 Message Date
Richard Feldman
7365da6f69
Merge pull request #3370 from rtfeldman/list-unreachable
List unreachable
2022-07-06 10:45:50 -04:00
Jan Van Bruggen
0002cdf8ec
Merge pull request #3380 from rtfeldman/3377-list-range-segfault
Fixes `List.range` segfaulting
2022-07-06 00:59:01 -06:00
Folkert
3a30e77726
Merge remote-tracking branch 'origin/trunk' into list-unreachable 2022-07-06 01:38:50 +02:00
Richard Feldman
84b11155de
Merge pull request #3405 from rtfeldman/roc-anywhere
Roc anywhere
2022-07-05 18:27:41 -04:00
Folkert de Vries
93dbda9ac5
Merge pull request #3399 from rtfeldman/pure-roc-map-with-index
Pure Roc `List.mapWithIndex`
2022-07-06 00:25:46 +02:00
Folkert
3360d9e5cd
recurse correctly 2022-07-05 22:06:49 +02:00
Brendan Hansknecht
c10ddf8594
fix accidental nested directory in lib 2022-07-05 11:12:30 -07:00
Brendan Hansknecht
4220b02913
setup copying zig bitcode to the target directory 2022-07-05 10:44:24 -07:00
Folkert
68de9723cd
fix incorrect tag name 2022-07-05 11:33:53 +02:00
Folkert
6095dcff66
Merge remote-tracking branch 'origin/trunk' into list-unreachable 2022-07-04 19:21:31 +02:00
Folkert
6d7c329698
Str.walkScalars 2022-07-04 18:01:19 +02:00
Folkert
1de9270ecf
Merge remote-tracking branch 'origin/trunk' into str-walk 2022-07-04 16:30:07 +02:00
Folkert
9c41a4d442
str.appendScalar 2022-07-04 16:27:04 +02:00
Brian Carroll
40231535fa
builtins: Delete Zig implementation of List.mapWithIndex 2022-07-04 15:14:32 +01:00
Brian Carroll
557ae4dd9c
builtins: Implement List.mapWithIndex in pure Roc 2022-07-04 14:57:18 +01:00
Folkert
ab721dd3c1
Str.reserve 2022-07-04 14:57:20 +02:00
Folkert
f7b8094dfb
expose countUtf8Bytes 2022-07-04 13:59:19 +02:00
Folkert
a9ba08d8cb
appendScalar zig implementation 2022-07-04 13:58:39 +02:00
Folkert
4f965ec263
fix RocStr.capacity() in zig 2022-07-04 13:39:51 +02:00
Brian Carroll
e1d8d09472
builtins: move the output argument of Zig fromUtf8RangeC to first position 2022-07-04 11:24:39 +01:00
Brian Carroll
60d29c2e25
builtins: Move return pointer to first position for fromUtf8C 2022-07-04 11:24:39 +01:00
Brian Carroll
02ec30425c
wasm: Implement Str.split 2022-07-04 11:24:38 +01:00
Folkert
5904934887
rename countBytes -> countUtf8Bytes 2022-07-03 21:49:01 +02:00
Folkert
65f80b61c6
add Str.walkUtf8WithIndex 2022-07-03 20:24:08 +02:00
Folkert
eeb271d07f
Str.splitFirst and Str.splitLast 2022-07-03 19:47:06 +02:00
Folkert
be3800d7fa
add substringUnsafe roc function 2022-07-03 17:15:25 +02:00
Ayaz Hafiz
019ebd93f7
Put the capture niche in the lambda name instead of generating new names 2022-07-03 10:37:29 -04:00
Folkert
45eb8b9d77
add substringUnsafe in zig 2022-07-03 15:10:14 +02:00
Folkert
3cd56c3184
add Str.countBytes 2022-07-03 14:16:47 +02:00
Folkert
1f943a5452
add Str.getUnsafe 2022-07-03 13:46:22 +02:00
Marten/Qqwy
ce0bbbcef4
Fix segfault of List.range 0 3 2022-07-03 13:16:01 +02:00
Folkert
eefba96a16
format roc code 2022-07-03 13:02:41 +02:00
Folkert
8a611fdb34
use unreachable to implement walk 2022-07-03 03:01:23 +02:00
Folkert
762258ae20
Merge remote-tracking branch 'origin/trunk' into list-unreachable 2022-07-03 02:54:15 +02:00
Folkert de Vries
2a82d24847
Merge pull request #3369 from rtfeldman/pure-roc-list-walk
List.walk and friends in pure Roc
2022-07-03 02:32:43 +02:00
Folkert de Vries
d2c07f350d
Merge pull request #3371 from rtfeldman/starts-with-scalar
Str.startsWithCodePt -> Str.startsWithScalar
2022-07-03 00:22:21 +02:00
Folkert de Vries
75b4b3a206
Merge pull request #3365 from rtfeldman/to-scalars
Add Str.toScalars builtin
2022-07-02 23:04:28 +02:00
Brian Carroll
94181111be
Merge branch 'trunk' of github.com:rtfeldman/roc into pure-roc-list-walk 2022-07-02 21:44:42 +01:00
Richard Feldman
af05723d35
Rename startsWithCodePt to startsWithScalar 2022-07-02 15:51:33 -04:00
Folkert
8d6cdb6577
shift -> multiply 2022-07-02 21:48:57 +02:00
Richard Feldman
c9e52b8311
Have startsWithCodePt share code with toScalars 2022-07-02 15:28:10 -04:00
Richard Feldman
cfb33cb414
Fix bug in 3-byte and 4-byte toScalars 2022-07-02 15:25:33 -04:00
Richard Feldman
077c37d9fb
Use alignCast over intToPtr 2022-07-02 15:22:29 -04:00
Folkert
506e374642
List.unreachable 2022-07-02 19:40:05 +02:00
Folkert
e29a89d33c
remove zig implementation of keepIf/keepErrs/keepOks 2022-07-02 19:38:38 +02:00
Folkert
addb27164e
implement keepOks and keepErrs in pure roc 2022-07-02 19:38:37 +02:00
Folkert
6324fd632d
remove manual can implementation of takeFirst/takeLast 2022-07-02 19:38:37 +02:00
Folkert
616ddd6fe4
implement keepIf in pure roc 2022-07-02 19:38:36 +02:00
Brian Carroll
fdbcbb74dd
Format List.roc 2022-07-02 18:25:09 +01:00
Richard Feldman
d3ef05970f
zig fmt 2022-07-02 13:13:29 -04:00