mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Implement List.any
This commit is contained in:
parent
0e500ba33c
commit
44938a9e35
15 changed files with 137 additions and 6 deletions
|
@ -45,6 +45,7 @@ pub enum LowLevel {
|
|||
ListDrop,
|
||||
ListDropAt,
|
||||
ListSwap,
|
||||
ListAny,
|
||||
DictSize,
|
||||
DictEmpty,
|
||||
DictInsert,
|
||||
|
@ -221,6 +222,7 @@ macro_rules! higher_order {
|
|||
| ListKeepOks
|
||||
| ListKeepErrs
|
||||
| ListSortWith
|
||||
| ListAny
|
||||
| DictWalk
|
||||
};
|
||||
}
|
||||
|
@ -254,6 +256,7 @@ impl LowLevel {
|
|||
ListKeepOks => 1,
|
||||
ListKeepErrs => 1,
|
||||
ListSortWith => 1,
|
||||
ListAny => 1,
|
||||
DictWalk => 2,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1064,6 +1064,7 @@ define_builtins! {
|
|||
41 LIST_DROP_FIRST: "dropFirst"
|
||||
42 LIST_JOIN_MAP: "joinMap"
|
||||
43 LIST_JOIN_MAP_CONCAT: "#joinMapConcat"
|
||||
44 LIST_ANY: "any"
|
||||
}
|
||||
5 RESULT: "Result" => {
|
||||
0 RESULT_RESULT: "Result" imported // the Result.Result type alias
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue