Commit graph

590 commits

Author SHA1 Message Date
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
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
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
Luke Boswell
aabe75ff87
fix order of Task.sequence 2024-07-29 19:50:50 +10:00
Luke Boswell
b489c44b19
Merge remote-tracking branch 'remote/main' into builtin-task 2024-07-19 19:51:50 +10:00
Brendan Hansknecht
6e90052000
fix typo 2024-07-13 10:39:58 -07:00
Brendan Hansknecht
c734a27b59
move List.map* into roc 2024-07-13 10:39:56 -07:00
Sam Mohr
f61b303a59
Merge branch 'main' into builtin-task 2024-07-03 00:42:48 -07:00
shua
d90da3af52
rm TotallyNotJson
TotallyNotJson.roc now lives on the farm in virtual-dom-wip as Json.roc.
Any reference in stdlib or builtins has been removed, as well as the
last places it was used (in python/ruby-interop examples).
2024-07-01 20:37:23 +02:00
Sam Mohr
43fadeacdb
Fix clippy errors 2024-06-26 03:15:06 -07:00
Sam Mohr
700c7ae9aa
Add Task as a built-in module/type 2024-06-25 00:03:56 -07:00
shua
f7bec802c0
PR: rename to List.concatUtf8 2024-06-08 13:36:20 +02:00
shua
33e8a7a439
implement Str.concatUtf8 2024-06-07 19:05:52 +02:00
Andy Ferris
a0c4bb571f Add NaN and Infinity floating-point values to Num 2024-05-03 19:19:19 +10:00
Agus Zubiaga
e3b600c282
New package header syntax
Implements the new package header syntax as discussed in Zulip [1].

package [Csv] {
    parser: "../parser/main.roc"
}

Old headers still parse and are automatically upgraded to the new
syntax by the formatter.

[1] 418444862
2024-05-01 10:49:03 -03:00
Agus Zubiaga
057a18573a
New module header
Implements the new `module` header syntax as described in "module and package changes" [1]:

```
module [Request, Response, req]
```

The old syntax should still work fine, and is automatically upgraded to the new one
when running `roc format`.

[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
2024-05-01 10:39:12 -03:00
Agus Zubiaga
d5a38a26db
Merge branch 'main' into inline-imports 2024-04-20 12:01:11 -03:00
Nathaniel Knight
02689de797 Minor fix to the docstring of Num.shiftLeftBy 2024-04-17 20:50:17 -07:00
Anton-4
2df6f5cb72
Merge remote-tracking branch 'upstream/main' into optional-decoding-works 2024-04-12 16:05:50 +02:00
faldor20
f330e9aa29
roc format 2024-04-02 10:00:25 +10:00
Fabian Schmalzried
546cb17fb9
cut high bits for to large fraction an exponent 2024-04-01 21:08:14 +02:00
Anton-4
35a26eb39f
fix typos, WIP on NumF32ToParts 2024-04-01 21:08:12 +02:00
Fabian Schmalzried
4269608ebf
remove i128OfDec 2024-04-01 21:08:12 +02:00
Fabian Schmalzried
8f217aa51a
Better docs 2024-04-01 21:08:11 +02:00
Fabian Schmalzried
21d6848176
format 2024-04-01 21:08:10 +02:00
Fabian Schmalzried
11998b9cc8
f32FromParts and f64FromParts for repl 2024-04-01 21:08:10 +02:00
Fabian Schmalzried
473b8ef2d3
f32/f64toParts in repl only 2024-04-01 21:08:09 +02:00
Fabian Schmalzried
64e9899cad
Add Num.withDecimalPoint 2024-04-01 21:08:09 +02:00
Fabian Schmalzried
9c664172dd
Add Num.withoutDecimalPoint 2024-04-01 21:08:09 +02:00
Brendan Hansknecht
d66ce24dc3
Fix format change caused by doc changes
Introduces by anton's recent PR, just an extra space being removed.
2024-03-31 11:04:59 -07:00
Anton-4
2b40aa90d4
forgot about 32 bit targets
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-03-30 17:46:27 +01:00
Anton-4
315fbeb75c
list len docs correction 2024-03-30 14:47:56 +01:00
faldor20
e77759eb1c
Allow encoding records,lists and tuples with None fields 2024-03-20 21:10:37 +10:00
faldor20
2565580db5
working initial implementation 2024-03-15 13:31:11 +10:00
faldor20
23dd23c337
update builtin comments 2024-03-12 00:39:49 +10:00