forEachIndexed method
forEach with index
Implementation
void forEachIndexed(void action(int index, T element)) {
int index = 0;
for (T element in this) action(index++, element);
}
forEach with index
void forEachIndexed(void action(int index, T element)) {
int index = 0;
for (T element in this) action(index++, element);
}