MapNotNull<T> extension

on
  • Iterable<T>

Methods

mapNotNull<V>(V? mapper(T)) → Iterable<V>

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

Maps an Iterable (like map), but filters out any null values and cast the resulting Iterable to be null-safe.