For each element of the Iterable apply function toElements and flat the result.
toElements
Equivalent to Iterable.expand.
Iterable.expand
Iterable<B> flatMap<B>(Iterable<B> Function(T t) toElements) => expand(toElements);