flatMapIndexed<R> method

Set<R> flatMapIndexed<R>(
  1. Iterable<R> expand(
    1. int index,
    2. E element
    )
)

.expandIndexed equivalent

[1, 2, 3, 4, 5, 6].flatMapIndexed((index, element) => element * index) returns 3, 4, 5, 6, 5, 6.

Implementation

Set<R> flatMapIndexed<R>(Iterable<R> Function(int index, E element) expand) =>
    expandIndexed(expand).toSet();