mapIndexed<T, E> function
Returns a new Iterable with elements that are created by
calling f
on each element of items
in iteration order and
provides position of the element as a first argument of f
.
Implementation
Iterable<T> mapIndexed<T, E>(Func2<int, E, T> f, Iterable<E> items) =>
_mapIndexed(f, items);