atLeast

inline fun atLeast(n: Int, predicate: (Int) -> Boolean): Boolean(source)

Returns true if at least n elements in the list match the given predicate.

Return

true if at least n elements match the predicate, false otherwise.

Parameters

n

The minimum number of elements that must match the predicate.

predicate

A function that takes an element of type T and returns a Boolean.

Throws