strikt-core / strikt.assertions / flatMap

flatMap

infix fun <T : Iterable<E>, E, R> Builder<T>.flatMap(transform: (E) -> Iterable<R>): Builder<List<R>>

Maps this assertion to an assertion over a flattened list of the results of transform for each element in the subject iterable.

See Also

Iterable.flatMap