inline fun <A, B> List<A>.mapNotNone(f: (A) -> Option<B>): List<B>(source)

Returns a list containing only the non-None results of applying the given transform function to each element in the original collection.

inline fun <A, B> Nel<A>.mapNotNone(f: (A) -> Option<B>): Option<Nel<B>>(source)

Applies a function that produces an Option to a NonEmptyList. The result is None if the resulting list would be empty, otherwise Some(NonEmptyList).