any
lib.lists.any
Primop
Docs pulled from | This Revision | 4 days ago
Takes 2 arguments
pred, list
Returns 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
Noogle detected
Implementation
This function is implemented in c++ and is part of the native nix runtime.
Implementation
The following is the current implementation of this function.
any = builtins.any;