applyToAll

@JvmName(name = "applyToAllNullable")
fun <T> applyToAll(collection: Collection<T?>, consumer: IOConsumer<T>)

Applies the consumer to all non-null elements in the collection. If the consumer throws an exception for one element, that exception is re-thrown after applying to all elements, and later exceptions are suppressed.


fun <T> applyToAll(collection: Collection<T>, consumer: IOConsumer<T>)