<A, B>(f: (_: A) => B) => (oa: Opt<A>): Opt<B>
Apply oa to function f. If argument is None then result is None.
oa
f
apFn(x => x > 0)(opt(1)) // Opt(true)apFn(x => x > 0)(none) // None
A input of function f
B output of function f
Apply
oa
to functionf
. If argument is None then result is None.