findFlattened

fun <T> List<List<T>>.findFlattened(predicate: (T) -> Boolean): T?(source)

Finds the first element in the nested lists that matches predicate, or returns null if none found (generic version).