forEachByPosition

inline fun <T> Array<T>.forEachByPosition(block: (T, Int) -> Unit)