function onEach
source · line 29public
public fun <T> Iterable<T>.onEach(action: (T) -> Unit): Iterable<T>
Extension receiver: Iterable<T>
Runs the action eagerly for all elements and returns the original iterable.
parameter receiver
source · line 29public
Iterable<T>
type parameter T
source · line 29public
T
parameter action
source · line 29public
action: (T) -> Unit