strikt-core / strikt.assertions / allIndexed

allIndexed

infix fun <T : Iterable<E>, E> Builder<T>.allIndexed(predicate: Builder<E>.(Int) -> Unit): Builder<T>

Asserts that all elements of the subject pass the assertions in predicate.