flatMap<B> method

Iterable<B> flatMap<B>(
  1. Iterable<B> toElements(
    1. T t
    )
)

For each element of the Iterable apply function toElements and flat the result.

Equivalent to Iterable.expand.

Implementation

Iterable<B> flatMap<B>(Iterable<B> Function(T t) toElements) =>
    expand(toElements);