flatMap<T> method

Iterable<T> flatMap<T>(
  1. Iterable<T> callback(
    1. E element
    )
)

Maps each element of this Iterable using a mapping function to zero or more elements, then flattens the result into a continuous iterable.

This is an alias for Iterable.expand.

Implementation

Iterable<T> flatMap<T>(Iterable<T> Function(E element) callback) =>
    expand<T>(callback);