implementing an equivalent of the C#'s null test in F#

后端 未结 0 1969
栀梦
栀梦 2021-02-14 19:52

I\'m using quite a lot this piece of code:

let inline (||>) (a: \'a option) (b: \'a -> unit) = if a.IsSome then b a.Value

so I can do thing

相关标签:
回答
  • 消灭零回复
提交回复
热议问题