Namespace: FsToolkit.ErrorHandling
Apply a function to the value of an option if it is Some. If the option is None, return None.
('TInput-> 'TOutput) -> 'TInput option -> 'TOutput optionOption.map (fun x -> x + 1) (Some 1)
// Some 2Option.map (fun x -> x + 1) None
// None