kbox / ch.tutteli.kbox / forThisAndForEachIn

forThisAndForEachIn

inline fun <E> E.forThisAndForEachIn(iterable: Iterable<E>, action: (E) -> Unit): Unit

Applies action to this and to each entry in iterable.

inline fun <E> E.forThisAndForEachIn(sequence: Sequence<E>, action: (E) -> Unit): Unit

Applies action to this and to each entry in sequence.