concatMapWithIndex<B> method

Iterable<B> concatMapWithIndex<B>(
  1. Iterable<B> f(
    1. T t,
    2. int index
    )
)

Apply f to each element of the Iterable using the index and flat the result using concat.

Same as bindWithIndex and flatMapWithIndex.

Implementation

Iterable<B> concatMapWithIndex<B>(Iterable<B> Function(T t, int index) f) =>
    mapWithIndex(f).concat;