all

inline fun all(predicate: (B) -> Boolean): Boolean

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

Example:

Right(12).all { it 10 } // Result: true
Right(7).all { it 10 } // Result: false

val left: Either<Int, Int> = Left(12)
left.all { it 10 } // Result: true