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

@ -47,6 +47,9 @@ pub enum HigherOrder {
ListSortWith {
xs: Symbol,
},
ListAny {
xs: Symbol,
},
DictWalk {
xs: Symbol,
state: Symbol,
@ -69,6 +72,7 @@ impl HigherOrder {
HigherOrder::ListKeepErrs { .. } => 1,
HigherOrder::ListSortWith { .. } => 2,
HigherOrder::DictWalk { .. } => 2,
HigherOrder::ListAny { .. } => 1,
}
}
}