every

fun <T> Iterable<T>.every(predicate: (T) -> Boolean): Boolean

Returns true if every element appears to be true from the predicate closure, otherwise it returns false.

Parameters

predicate

The predicate closure to call.