//arrow-core/arrow.core/Option/mapNotNull

mapNotNull

common 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

common

   
f the function to apply.

Do you like Arrow?

Arrow Org
<