arrow-optics / arrow.optics / POptional / exists

exists

open fun exists(source: S, predicate: (focus: A) -> Boolean): Boolean

Check if there is a focus and it satisfies the predicate predicate

Do you like Arrow?

Arrow Org
<