IterableMapNotNullExtensions<T> extension

Map-and-filter-nulls in a single pass.

on

Methods

mapNotNull<U>(U? selector(T element)) Iterable<U>

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

Applies selector to each element and yields only the non-null results.