MapIndexed<T> extension

on

Methods

mapIndexed<V>(V mapper(int, T)) Iterable<V>
Maps an Iterable (like map), but you have access to both the element and the index on the mapping function.