arrow-optics / arrow.optics / PTraversal / exist
open fun exist(s: S, p: (A) -> Boolean): Boolean
open fun exist(s: S, p: (A) ->
Boolean
):
Check whether at least one element satisfies the predicate.
If there are no elements, the result is false.
Do you like Arrow?