Jan Van Bruggen
f47dbb5171
Swap List.mapWithIndex arg1 args order to put the element first
2022-02-11 16:10:29 -07:00
Jan Van Bruggen
92e0f8714f
Swap List.repeat args order to put the list first
2022-02-11 16:10:29 -07:00
Richard Feldman
53b1959d9d
Merge pull request #2395 from rtfeldman/JanCVanB-patch-2
...
Add some missing exposures to docs
2022-01-23 22:12:14 -05:00
Jan Van Bruggen
29303c4ba4
Add some missing exposures to docs
2022-01-23 12:38:39 -05:00
Jan Van Bruggen
7b22b42a8f
Fix args order in some docs
...
These changes reflect the builtins as they're currently implemented, but I wish that instead they worked as (previously) described. Should this PR be abandoned in favor of an actual argument swap?
2022-01-23 12:37:36 -05:00
j
ec68b1ab38
Alphabetize compiler/builtins/docs/ exposures
2021-12-15 07:37:15 -07:00
Richard Feldman
6056d29df0
Merge pull request #2201 from rtfeldman/builtin_docs
...
Added builtins to docs
2021-12-14 22:04:23 -05:00
Jan Van Bruggen
c783446567
Remove duplicate dropLast
& all
in List
docs
2021-12-13 18:43:24 -07:00
Anton-4
eeb8d7e9f1
Added builtins to docs
2021-12-13 20:27:32 +01:00
Michael Downey
d946b84e63
adding initial List.all
2021-11-16 16:34:36 -05:00
ayazhafiz
f65b174ab5
Implement List.find
...
`List.find : List elem, (elem -> Bool) -> Result elem [ NotFound ]*`
behaves as follows:
```
>>> List.find [1, 2, 3] (\n -> n > 2)
Ok 2
>>> List.find [1, 2, 3] (\n -> n > 4)
Err NotFound
```
We implement this as builtin in two phases. First, we call out to a
pure-llvm-lowlevel `ListFindUnsafe` that returns a record indicating
whether a satisfying element was found, and the value of that element
(the value is all null bytes if the element wasn't found). Then, we lift
that record to a `Result` via a standard construction of the can AST.
Closes #1909
2021-11-08 21:03:14 -05:00
Kevin Sjöberg
0e500ba33c
Document List.any
2021-11-07 20:43:28 +01:00
Kevin Sjöberg
f6d055dc62
Correct minor spelling mistakes
2021-11-06 15:29:08 +01:00
Kevin Sjöberg
f9ed060e49
Implement List.map4
2021-10-31 21:08:41 +01:00
Chelsea Troy
fd83c3b749
Branch the dropLast functionality from dropAt, inserting an index gathered by subtracting 1 from the list length
2021-10-23 00:17:08 -05:00
Richard Feldman
8391c337ab
Merge remote-tracking branch 'origin/trunk' into list-walk-flip
2021-10-05 20:50:50 -04:00
Richard Feldman
894e295b85
Merge pull request #1764 from rtfeldman/list
...
Some List docs changes
2021-10-04 18:08:32 -05:00
Richard Feldman
cfe7d5afbb
Document List.map2 and List.map3
2021-10-04 08:42:52 -04:00
Richard Feldman
e6ec1ded22
Add mapJoin and mapOrDrop to List
2021-10-04 08:26:23 -04:00
Dan Knutson
65821d6a9f
remove giesch/todo tags, add List.drop doc
2021-10-03 13:55:11 -05:00
Dan Knutson
3baff93a97
add first version of List.dropAt
...
* adds an implementation with no uniqueness/mutability
2021-10-03 13:55:11 -05:00
Richard Feldman
b4e4ae2ff3
Update docs for List.walk and friends
2021-08-30 22:45:03 -04:00
Richard Feldman
2abab84373
Update some map
docs
2021-08-08 20:32:50 -04:00
Richard Feldman
f62d25e42c
Fix a bunch of List docs
2021-08-08 15:49:36 -04:00
Anton-4
22d834ebd9
Merge branch 'trunk' of github.com:rtfeldman/roc into typos_ci
2021-06-07 12:33:26 +02:00
Richard Feldman
4995bc2312
Fix some List docs
2021-06-06 02:22:19 -04:00
Anton-4
314503cf7f
fixed typos, added typos checking to CI
2021-06-05 20:02:54 +02:00
Richard Feldman
2b2b6e3ddd
Update some more docs
2021-06-04 21:27:26 -04:00
Richard Feldman
1bd3f12776
Fix a bunch of Int docs
2021-06-03 21:31:47 -04:00
Richard Feldman
421a625515
Add List.startsWith and endsWith
2021-04-26 00:21:03 -04:00
Chadtech
62b4ce0598
Put List private tag list
2021-03-30 00:53:20 -04:00
Chadtech
e6d900b978
Vertical List.roc exports
2021-03-22 00:55:05 -04:00
Chadtech
35c7bb7a5a
Correct errors in List.roc
2021-03-22 00:54:42 -04:00
Richard Feldman
b018a15075
Revise some builtin docs
2020-12-31 23:41:57 -05:00
Richard Feldman
d388ef39e4
s/Len/Nat in builtin docs
2020-12-31 16:03:07 -05:00
Pablo Hirafuji
0c0f70aba0
Add more docs files and check def exposition
2020-09-27 20:41:51 -03:00
Pablo Hirafuji
aed612a75c
Load docs from files
2020-09-27 19:40:54 -03:00
Jared Ramirez
c6b14e755c
Add clarificaton to oks docs
2020-09-11 13:05:59 -07:00
Jared Ramirez
d22d609097
Revert oks type signature
2020-09-11 09:21:05 -07:00
Jared Ramirez
aa5107257e
Change builitin List docs 'joinOks' to 'oks'
2020-09-11 09:21:05 -07:00
Richard Feldman
5eeb41d5c0
Add List.update and List.updater
2020-09-03 20:31:43 -04:00
Richard Feldman
73d826ce36
Update some docs
2020-08-14 09:46:06 -04:00
Richard Feldman
16b801a3f2
Revise List docs some more
2020-07-20 22:26:18 -04:00
Richard Feldman
ca6881ab3e
Change the type of List.mapOrCancel
2020-07-18 11:12:12 -04:00
Richard Feldman
056c3362b5
Update List docs some more
2020-07-18 11:12:12 -04:00
Richard Feldman
e97b019ad2
Add initial List.roc
2020-07-18 11:12:12 -04:00
Richard Feldman
1a348d1731
Write some docs
2020-05-11 23:38:18 -04:00
Richard Feldman
4033098dac
Update some number docs
2020-03-15 01:24:41 -04:00
Richard Feldman
f3c9ac2b40
Try out some docs
2020-03-14 23:31:17 -04:00
Richard Feldman
908e485fca
Move constrain and its deps into their own crates
2020-03-06 01:43:39 -05:00