MapIndexed<E> extension

on

Methods

mapIndexed<T>(Func2<int, E, T> f) Iterable<T>
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.