mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Don't use backpassing on List.any
This commit is contained in:
parent
d382eb334f
commit
ee9b62d8ae
1 changed files with 1 additions and 2 deletions
|
@ -226,8 +226,7 @@ expect update (single "a" Bool.true) "a" alterValue == empty
|
|||
## |> Bool.isEq Bool.true
|
||||
contains : Dict k v, k -> Bool | k has Eq
|
||||
contains = \@Dict list, needle ->
|
||||
(Pair key _value) <- List.any list
|
||||
key == needle
|
||||
List.any list \Pair key _val -> key == needle
|
||||
|
||||
expect contains empty "a" == Bool.false
|
||||
expect contains (single "a" {}) "a" == Bool.true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue