mapNotNull<R> method

Iterable<R> mapNotNull<R>(
  1. R? transform(
    1. E element
    )
)

Returns an Iterable containing only the non-null results of applying the given transform function to each element in the original collection.

Implementation

Iterable<R> mapNotNull<R>(R? Function(E element) transform) =>
    map(transform).whereNotNull;