any

fun <E, T : Iterable<E>> Assert<T>.any(f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if any of the items pass. The given lambda will be run for each item.

assert(listOf(-1, -2, 1)).any { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.any(f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if any of the items pass. The given lambda will be run for each item.

assert(sequenceOf(-1, -2, 1)).any { it.isPositive() }