OptionalCollectionsOps<T> extension

on

Methods

flatMap<R>(R? f(T)) Iterable<R>

Available on Iterable<T>, provided by the OptionalCollectionsOps extension

flatMap map elements of an iterable into iterable of optional, then collect non-null values into iterable.