Is there conditional access operator in F# (similar to new ?. in C#)?

后端 未结 3 1429
傲寒
傲寒 2021-01-18 17:14

Now that the C# 6 is finally going to have this long-anticipated ?. operator, is there similar thing in F#? And I\'m not talking about ? operator.

3条回答
  •  逝去的感伤
    2021-01-18 17:34

    You can lift your nullable into option first. And then you can use an option computation expression to achieve the same thing.

提交回复
热议问题