bindWithIndex<B> method

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

For each element of the Iterable apply function f with the index and flat the result.

Same as flatMapWithIndex and concatMapWithIndex.

Implementation

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