map Not None
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> <Error class: unknown class><A>.mapNotNone(f: (A) -> Option<B>): Option<<Error class: unknown class><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).