mapIndexed<T> method

Iterable<T> mapIndexed<T>(
  1. Func2<int, E, T> f
)

Returns a new Iterable with elements that are created by calling f on each element of current iterable in iteration order and provides position of the element as a first argument of f.

Implementation

Iterable<T> mapIndexed<T>(Func2<int, E, T> f) => _mapIndexed(f, this);