flatMap<R> method

Iterable<R> flatMap<R>(
  1. Iterable<R> f(
    1. dynamic item
    )
)
override

The flatMap() method first maps each element using a mapping function, then flattens the result into a new array

Implementation

Iterable<R> flatMap<R>(Iterable<R> f(item)) sync* {
  for (var item in items) {
    yield* f(item);
  }
}