forEachNotNull

inline fun <T : Any> Iterable<T?>.forEachNotNull(action: (T) -> Unit)

Performs the given action on each element that is not null.

Sources

Katlib source
Link copied to clipboard