every: Do every, some, or none of the elements of a list satisfy a predicate?
Description
Do every, some, or none of the elements of a list satisfy a predicate?
Usage
every(.x, .p, ...)
some(.x, .p, ...)
none(.x, .p, ...)
Value
A logical vector of length 1.
Arguments
.x
A list or atomic vector.
.p
A predicate function to apply on each element of .x.
some() returns TRUE when .p is TRUE for at least one
element. every() returns TRUE when .p is TRUE for all
elements. none() returns TRUE when .p is FALSE for all
elements.`