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

后端 未结 0 787
误落风尘
误落风尘 2021-02-14 19:42

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

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