Implement List.any

This commit is contained in:
Kevin Sjöberg 2021-11-05 23:34:10 +01:00
parent 0e500ba33c
commit 44938a9e35
15 changed files with 137 additions and 6 deletions

View file

@ -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,
}
}

View file

@ -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