all

inline fun all(predicate: (element: E) -> Boolean): Boolean

Returns true if all elements match the given predicate. If there are no elements in the set, true is returned.

Parameters

predicate

called for elements in the set to determine if it returns return true for all elements.