indexedMap<E> method
map elements with index and return new map
Implementation
Iterable<E> indexedMap<E>(E Function(int index, T e) f) sync* {
var index = 0;
for (var element in this) {
yield f(index, element);
index++;
}
}