either
Function Signature
('T-> 'output) -> (unit -> 'output) -> 'T option -> 'outputExamples
Example 1
Option.either (fun x -> x * 2) (fun () -> 0) (Some 5)
// 10Example 2
Option.either (fun x -> x * 2) (fun () -> 0) None
// 0Last updated