exists

inline fun exists(predicate: (B) -> Boolean): Boolean(source)

Returns false if Left or returns the result of the application of the given predicate to the Right value.

Example:

import arrow.core.Ior

fun main() {
Ior.Both(5, 12).exists { it 10 } // Result: true
Ior.Right(12).exists { it 10 } // Result: true
Ior.Right(7).exists { it 10 } // Result: false
val left: Ior<Int, Int> = Ior.Left(12)
left.exists { it 10 } // Result: false
}