kbox-jvm / ch.tutteli.kbox / forThisAndForEachIn

forThisAndForEachIn

inline fun <E> E.forThisAndForEachIn(iterable: Array<E>, action: (E) -> Unit): Unit
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(arr1: Array<E>, arr2: Array<E>, action: (E) -> Unit): Unit

Applies action to this and to each entry in arr1 and in arr2.

inline fun <E> E.forThisAndForEachIn(arr1: Array<E>, arr2: Array<E>, vararg arrays: Array<E>, action: (E) -> Unit): Unit

Applies action to this and to each entry in arr1, arr2 and each entry of Iterable in arrays.

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

Applies action to this and to each entry in iterable1 and in iterable2.

inline fun <E> E.forThisAndForEachIn(iterable1: Iterable<E>, iterable2: Iterable<E>, vararg iterables: Iterable<E>, action: (E) -> Unit): Unit

Applies action to this and to each entry in iterable1, iterable2 and each entry of Iterable in iterables.

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

Applies action to this and to each entry in sequence.

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

Applies action to this and to each entry in sequence1 and in sequence2.

inline fun <E> E.forThisAndForEachIn(sequence1: Sequence<E>, sequence2: Sequence<E>, vararg sequences: Sequence<E>, action: (E) -> Unit): Unit

Applies action to this and to each entry in in sequence1, sequence2 and each entry of Sequence in sequences.