zipWithIndex method

Iterable<Tuple2<int, T>> zipWithIndex()

Aggregate each element with corresponding index

Implementation

Iterable<Tuple2<int, T>> zipWithIndex() =>
    Iterable.generate(length, (index) => Tuple2(index, _l[index])).toIList(config);