onEach

inline fun <T, D : Dimension, C : MultiArray<T, D>> C.onEach(action: (T) -> Unit): C

Performs the given action on each element and returns the collection itself afterwards.