mapNotNull

inline fun <B> mapNotNull(f: (A) -> B?): Option<B>

Returns $none if the result of applying $f to this $option's value is null. Otherwise returns the result.

Parameters

f

the function to apply.