Operators
Result<('a -> 'b) option, 'c> -> Result<'a, 'c>
-> Result<'b option, 'c>Examples
Example 1
// int -> int -> int -> int
let add a b c = a + b + c// Ok (Some 42)
let opResult : Result<int option, string> =
add
<!> (Ok (Some 30))
<*> (Ok (Some 10))
<*> (Ok (Some 2)) Example 2
Last updated