all

inline fun <T> Iterable<T>.all(noinline predicate: (T) -> Boolean): Boolean(source)

Returns true if every element in this satisfies the predicate. If this is empty, true is returned.

Stream equivalent: Stream.allMatch.

See also


inline fun <T> Iterator<T>.all(noinline predicate: (T) -> Boolean): Boolean(source)

Returns true if every element returned by this satisfies the given predicate. If this is empty, true is returned.

See also