forEachIndexed

inline fun forEachIndexed(action: (index: Int, value: Double) -> Unit)(source)

Iterates elements from first to last, passing the logical index and value to action.