Familiar with Select in LINQ?

Now imagine if you can apply a lambda to any type and not just collections? That’s called Map. Many types in F#, e.g. Option, Result, Async, List etc. have Map. Option Map, for instance, applies the lambda only if the Option is Some.

Map in F#
Code Snippet
let addOneAndPrint number =
    |> Option.map (fun number -> number + 1)
    |> printfn "%A"
Some 2 |> addOneAndPrint
None |> addOneAndPrint