flatMap<A, B>(f): (ma) => Option<B>
Chains a function that returns an Option over the value.
Type Parameters
A: A
The input type.
B: B
The output type.
Parameters
The chaining function.
Returns
A function that transforms the Option.
Since
2.0.0