Commit graph

1148 commits

Author SHA1 Message Date
Brendan Hansknecht
6e9f6843c4
Merge pull request #7319 from roc-lang/dec-mul
fix dec multiplication with overflow and saturation
2024-12-08 17:08:52 -08:00
Luke Boswell
6675734c16
Merge pull request #7314 from shua/wrapped
impl add/sub/mul wrapped for u128/i128
2024-12-09 11:19:58 +11:00
Brendan Hansknecht
562032e2d8
fix dec multiplication with overflow and saturation
fixes #7276
2024-12-08 11:14:38 -08:00
Ayaz
793a95264d
Merge branch 'main' into wrapped 2024-12-08 13:54:43 -05:00
Sam Mohr
01f4d4f3da
Merge branch 'main' into cleanup_unused 2024-12-08 10:14:47 -08:00
Mattthew Heath
3aeab753b4
tidying 2024-12-06 18:44:10 +00:00
Mattthew Heath
8c2cdeb332
aligns at 16 finally 2024-12-06 18:35:49 +00:00
Mattthew Heath
addd826511
Revert "aligns as 8"
This reverts commit 82a70c79b8.
2024-12-06 17:47:08 +00:00
Mattthew Heath
82a70c79b8
aligns as 8 2024-12-06 17:33:12 +00:00
Mattthew Heath
b33f1b0981
aligns as usize 2024-12-06 17:16:24 +00:00
JRI98
90f517712a
Remove unused code 2024-12-05 09:18:52 +00:00
shua
6f4e501069
impl add/sub/mul wrapped for u128/i128 2024-12-01 22:26:25 +01:00
shua
6dfa458e6c
Num.powInt: panic on overflow 2024-11-30 11:26:42 +01:00
Luke Boswell
e43b78b354
update to workspace deps for miscellaneous 2024-11-29 11:37:39 +11:00
Luke Boswell
6ce35c4337
replace cargo deps with workspace in alias_analysis, build, builtins, can 2024-11-29 11:12:25 +11:00
JRI98
61ca278e31
Fix division of zero by zero for Dec 2024-11-27 23:38:21 +00:00
Anton-4
47d810e059
fix example
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-11-16 19:30:47 +01:00
Isaac Van Doren
d99c347998
rename Str.split 2024-11-15 21:12:23 -06:00
Isaac Van Doren
d0735f2661
remove List.split 2024-11-15 20:31:37 -06:00
Isaac Van Doren
cf05fe03e9
refactor implementation to avoid bug 2024-11-13 20:21:42 -06:00
Isaac Van Doren
f33a483502
merge main 2024-11-12 20:55:45 -06:00
Isaac Van Doren
75ebcbe952
add docs 2024-11-10 18:39:29 -06:00
Isaac Van Doren
ec59acea89
add List.splitOnList 2024-11-10 18:34:34 -06:00
Isaac Van Doren
0a7e98ab65
add List.splitOn 2024-11-10 18:20:31 -06:00
Agus Zubiaga
6d0cec253d
Add List.forEachTry! builtin 2024-11-09 23:13:49 -03:00
Agus Zubiaga
ce568c01c1
Add List.forEach! builtin 2024-11-09 22:23:19 -03:00
Agus Zubiaga
644702a2b3
Add Result.onErr! builtin 2024-11-09 22:17:33 -03:00
Isaac Van Doren
45b50bd131
add List.splitAt 2024-11-09 17:16:21 -06:00
Agus Zubiaga
7a7650c11d
Parse lowercase idents ending in ! 2024-11-07 18:54:14 -03:00
Stuart Hinson
3739023f2a
fix typo in Dict.update docs
`Err` branch fix

Signed-off-by: Stuart Hinson <stuart.hinson@gmail.com>
2024-10-15 13:19:36 -04:00
Anton-4
775bce294b
Merge pull request #7007 from roc-lang/str-dropping
Implement `Str.dropPrefix` and `Str.dropSuffix` builtins
2024-09-30 16:11:04 +02:00
Nathan Kramer
bc1023065c
Add Num.intCast documentation
Have added GPG signing to the commit
2024-09-30 14:09:23 +10:00
Luke Boswell
aec3af667d
use wrapping instead of saturaing subtraction 2024-09-29 14:38:06 +10:00
Luke Boswell
3fa9712d81
remove stray comment 2024-09-29 14:36:18 +10:00
Luke Boswell
760af4a04e
Merge remote-tracking branch 'remote/main' into str-dropping 2024-09-29 14:31:04 +10:00
Stuart Hinson
9745e1931c Dict.update alter fn is passed a Result 2024-09-19 20:46:44 -04:00
Aurélien Geron
c10b25cf6e
Fixes #7065 in List.dropAt, author: @bhansconnect 2024-09-19 10:43:05 +12:00
Sam Mohr
12df3a04de
Merge attempt 2024-08-19 23:34:05 -07:00
Luke Boswell
4be6c5d4ce
implement Str.dropPrefix and Str.dropSuffix 2024-08-17 17:21:37 +10:00
Luke Boswell
6bae15c467
resolve review comments 2024-08-14 17:24:12 +10:00
Luke Boswell
7aebee8c94
implement Result.mapBoth and Result.map2 builtins 2024-08-14 13:16:24 +10:00
Sam Mohr
7e72541a79 Merge branch 'main' into builtin-task 2024-08-12 23:12:38 -07:00
Anton-4
ed4e831347
fmt Num.roc 2024-08-05 11:55:53 +02:00
Anton-4
dd3d3810fb
added workaround
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-03 14:43:09 +02:00
Anton-4
fd8b7355f6
Num.neg docs
See also https://github.com/roc-lang/roc/issues/6959

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-03 14:37:00 +02:00
Sam Mohr
66cf946965 Fix PR comments 2024-08-03 04:37:31 -07:00
Sam Mohr
8288af3156
Merge branch 'main' into builtin-task 2024-07-31 13:36:32 -07:00
Sam Mohr
bdb50912b8 Rename Task.seq -> Task.sequence 2024-07-31 13:35:36 -07:00
Luke Boswell
bb9b7d22b5
improve Task.seq implementation 2024-07-30 17:49:39 +10:00
Luke Boswell
78304a14c7
fix order of Task.sequence 2024-07-29 20:31:22 +10:00