mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Implement List.takeFirst
This commit is contained in:
parent
978f9e0bc6
commit
878400f95f
13 changed files with 145 additions and 1 deletions
|
@ -42,6 +42,7 @@ pub enum LowLevel {
|
|||
ListKeepOks,
|
||||
ListKeepErrs,
|
||||
ListSortWith,
|
||||
ListTakeFirst,
|
||||
ListDrop,
|
||||
ListDropAt,
|
||||
ListSwap,
|
||||
|
@ -131,6 +132,7 @@ macro_rules! first_order {
|
|||
| ListLen
|
||||
| ListGetUnsafe
|
||||
| ListSet
|
||||
| ListTakeFirst
|
||||
| ListDrop
|
||||
| ListDropAt
|
||||
| ListSingle
|
||||
|
|
|
@ -1065,6 +1065,7 @@ define_builtins! {
|
|||
42 LIST_JOIN_MAP: "joinMap"
|
||||
43 LIST_JOIN_MAP_CONCAT: "#joinMapConcat"
|
||||
44 LIST_ANY: "any"
|
||||
45 LIST_TAKE_FIRST: "takeFirst"
|
||||
}
|
||||
5 RESULT: "Result" => {
|
||||
0 RESULT_RESULT: "Result" imported // the Result.Result type alias
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue