forEachIndexed

inline fun forEachIndexed(action: (Int, Boolean) -> Unit)(source)

Performs the given action on each element in the array, providing the index of the element.

Parameters

action

The action to perform on each element, with the index provided.