MapIndexed<T> extension

on
  • Iterable<T>

Methods

mapIndexed<V>(V mapper(int, T)) → Iterable<V>

Available on Iterable<T>, provided by the MapIndexed extension

Maps an Iterable (like map), but you have access to both the element and the index on the mapping function.