mapIndexed<R> method
- R convert(
- int index,
- E element
Maps each element and its index to a new value.
Implementation
Iterable<R> mapIndexed<R>(R Function(int index, E element) convert) sync* {
for (var index = 0; index < length; index++) {
yield convert(index, this[index]);
}
}