arrow-optics / arrow.optics / Getter / find

find

open fun find(s: S, p: (A) -> Boolean): Option<A>

Find the focus A if it satisfies the predicate p.

Do you like Arrow?

Arrow Org
<