Commit graph

7905 commits

Author SHA1 Message Date
Trevor Settles
9c67ae15be
example for optional 2024-03-08 22:04:27 -07:00
Trevor Settles
f3666b346b
example for keyword_e 2024-03-05 18:51:28 -07:00
Trevor Settles
997222a1ce
removed imports and example for then 2024-03-04 23:14:48 -07:00
Trevor Settles
62e6e34470
examples for allocated 2024-03-03 21:55:59 -07:00
Trevor Settles
3cb0edf958
added and_then docs 2024-03-03 12:34:56 -07:00
Trevor Settles
3f2d2dd908
added and examples 2024-03-03 11:50:24 -07:00
Trevor Settles
58c654a092
removed erroneus wrapping function 2024-03-03 11:32:18 -07:00
Trevor Settles
b7181af8f3
better formatting for word docs 2024-03-03 11:15:09 -07:00
Trevor Settles
ff19d1b834
pass and fail examples 2024-03-03 11:02:02 -07:00
Brendan Hansknecht
26e21addee
Merge pull request #6545 from roc-lang/approx-eq-update
Update Num.isApproxEq
2024-03-01 18:06:04 -08:00
Brendan Hansknecht
3c737c19ee
update mono tests 2024-02-29 21:33:32 -08:00
Brendan Hansknecht
f79e93cfdc
Update Num.isApproxEq
The function is now symmetric and using max instead of sum to separate the absolute and relative tolerance.

Reason for change here: 419553929
2024-02-29 11:30:01 -08:00
Richard Feldman
878042bc3d
Revise error for single-quote interpolation 2024-02-27 12:11:54 -05:00
Richard Feldman
ffd72b184b
Fix tests 2024-02-27 11:35:06 -05:00
Richard Feldman
6978ca7bf3
roc format now auto-upgrades string interpolation 2024-02-26 23:08:25 -05:00
Richard Feldman
6f84e24fa5
Merge remote-tracking branch 'origin/main' into more-dollars 2024-02-26 23:06:23 -05:00
Oskar Hahn
06ab08003f
Export all symbols on wasm builds 2024-02-26 15:40:58 +01:00
JRI98
acbbdd0f7b
Improve handling of multi pattern unbound variables 2024-02-23 15:22:23 +00:00
Anton-4
b74653db8e
Merge pull request #6533 from lukewilliamboswell/encode-docs
Docs for `Encode` builtin
2024-02-23 15:50:52 +01:00
Anton-4
67cfe7ece0
List.concat -> List.append
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 14:21:43 +01:00
Anton-4
af389a9792
minor improvement
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 14:08:39 +01:00
Anton-4
df58a4ff07
fix expects
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-02-23 13:56:34 +01:00
Luke Boswell
a671c4cdc9
clean up 2024-02-22 19:15:01 +11:00
Luke Boswell
921c90a460
roc-gpt attempt 2024-02-22 19:04:18 +11:00
Anton-4
b5f68bc020
Merge pull request #6525 from roc-lang/fix_text_contrast
less colors and more contrast in terminal
2024-02-20 15:46:13 +01:00
Richard Feldman
3b3a330d73
Merge pull request #6422 from roc-lang/remove-nat
Remove `Nat`
2024-02-20 09:45:36 -05:00
Anton-4
adf88e7282
change underline color 2024-02-19 13:53:01 +01:00
Richard Feldman
12aa775f54
Update mono tests 2024-02-17 13:20:34 -05:00
Richard Feldman
739565e836
Revert "Remove obsolete ListLenUsize"
This reverts commit ad1bca4ac9c40d336522f944df60d61a814435dd.
2024-02-17 13:20:34 -05:00
Richard Feldman
87d4760356
Remove obsolete ListLenUsize 2024-02-17 13:20:34 -05:00
Richard Feldman
762f52b714
Use ListLenU64 where it's needed over ListLenUsize 2024-02-17 13:20:33 -05:00
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
74e58d3d51
Fix decode_from_utf8_result 2024-02-17 13:20:33 -05:00
Anton-4
56bf36fc90
green should have been cyan 2024-02-17 11:34:06 +01:00
Anton-4
aeb644cc50
regex to strip html colors 2024-02-16 19:20:20 +01:00
Anton-4
64113bbf72
fix expect colors 2024-02-16 17:14:49 +01:00
Anton-4
7f947ad00b
removed dbg 2024-02-16 16:34:24 +01:00
Anton-4
f66711d53e
re-use strip_colors 2024-02-16 16:32:46 +01:00
Anton-4
00d1ac0aef
removed duplicate code 2024-02-16 15:13:40 +01:00
Richard Feldman
3b55b64ca6
Update mono tests 2024-02-15 06:47:14 -05:00
Richard Feldman
ada83561e5
Split ListLen into ListLenU64 and ListLenUsize
The usize one gets used internally for things like
pattern matches. This is both more efficient (means
they don't have to do unnecessary casts) and also
less error-prone due to e.g. comparing length to
capacity, which is usize.
2024-02-14 21:00:49 -05:00
Richard Feldman
a15cc0589c
Revert "Fix some usize -> u64 in List patterns"
This reverts commit e8a0b0930d.
2024-02-14 20:17:14 -05:00
Richard Feldman
30712d352a
Silence some unused test macro warnings 2024-02-14 20:16:39 -05:00
Richard Feldman
c2ab73c115
Add a TODO comment for later 2024-02-14 20:16:28 -05:00
Richard Feldman
d674c53b80
Merge pull request #6520 from roc-lang/fix-2-repl-panics
fix two repl panics
2024-02-14 14:48:31 -05:00
Richard Feldman
3aec2a9182
Address some unused warnings 2024-02-14 13:47:26 -05:00
Richard Feldman
adfaefd4b7
Fix some more usize -> u64 in gen tests 2024-02-14 13:43:49 -05:00
Anton-4
719e32e0f0
clippy 2024-02-14 18:18:16 +01:00
Anton-4
38467394cc
fmt 2024-02-14 18:09:41 +01:00
Anton-4
c6b5e2f8c3
less colors more contrast 2024-02-14 17:20:44 +01:00