fastForEachIndexed

inline fun fastForEachIndexed(action: (index: Int, T) -> Unit)(source)

Performs the given action for each element in this sublist, providing its index relative to this sublist.

This method is faster and more efficient than List.forEachIndexed.

Parameters

action

The function to be executed