//arrow-meta/arrow.meta.phases.analysis/exists

exists

[jvm]
fun <A> List<A>.exists(f: (A, A) -> Boolean): List<Pair<A, List<A>>>

collects all distinct witnesses of f from the receiver, where the return type contains pairs of A and a list of other corresponding elements that full fill f

Do you like Arrow?

Arrow Org
<