F#中是否有标准的选项工作流程? [英] Is there a standard option workflow in F#?
问题描述
standrd F#库中是否有一个选项(也许)wokflow(monad)?
Is there an option (maybe) wokflow (monad) in the standrd F# library?
我发现了许多手工制作的实现( 2 ),但是我真的不想在我的项目中引入非标准且不太值得信赖的代码.对Google和msdn的所有可想像的查询都让我不知道在哪里找到它.
I've found a dozen of hand-made implementations (1, 2) of this workflow, but I don't really want to introduce non-standard and not very trusted code into my project. And all imaginable queries to google and msdn gave me no clue where to find it.
推荐答案
标准F#库中可能没有Monad.您可能需要查看 FSharpx ,这是由F#社区的资深成员编写的F#扩展,其中包含许多有用的monad.
There's no Maybe monad in the standard F# library. You may want to look at FSharpx, a F# extension written by highly-qualified members of F# community, which has quite a number of useful monads.
这篇关于F#中是否有标准的选项工作流程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!