forEachFlattened

fun <T> List<List<T>>.forEachFlattened(action: (T) -> Unit)(source)

Iterates over each element in all nested lists and applies the given action.