any
lib.lists.any
Primop
Docs pulled from | This Revision | 35 minutes ago
Takes 2 arguments
pred, list
Return true if function pred
returns true for at least one
element of list
.
Inputs
pred
-
Predicate
list
-
Input list
Type
any :: (a -> bool) -> [a] -> bool
Examples
lib.lists.any
usage example
any isString [ 1 "a" { } ]
=> true
any isString [ 1 { } ]
=> false