F# 中是否有标准选项工作流? [英] Is there a standard option workflow in F#?

查看:22
本文介绍了F# 中是否有标准选项工作流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标准 F# 库中是否有选项(也许)wokflow(monad)?

Is there an option (maybe) wokflow (monad) in the standrd F# library?

我发现了十几种手工实现(1, 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# 库中没有 Maybe 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆