flatMapIndexed<T> method
Null safety
- IndexedTransform<
E, Iterable< fT> >
Return a new lazy Iterable
of all elements yielded from results of transform f
function
being invoked on each element of original collection, providing sequential index of each element.
It's the index-aware version of flatMap()
.
Implementation
Iterable<T> flatMapIndexed<T>(IndexedTransform<E, Iterable<T>> f) =>
this != null ? _FlatMappedIterable(mapIndexed(f)) : Iterable.empty();