monads的创意用途 [英] Creative uses of monads

查看:83
本文介绍了monads的创意用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找monads的创意用途来学习。我已经读过某个地方,monad已经用于人工智能,但作为monad新手,我没有看到如何。



请包括一个链接到源代码和样本用法。没有标准单子 解决方案 wadler / topics / monads.htmlrel =noreferrer>关于monads的许多论文,但首先要阅读的文章很有趣,任何程序员都可以访问;它被称为函数式编程的本质。该文件包括源代码和样本用法。

我个人最喜欢的是概率monad ;如果你能找到 Sungwoo Park 的博士论文,它有许多有趣的示例代码来自机器人。


I'm looking for creative uses of monads to learn from. I've read somewhere that monads have been used for example in AI, but being a monad newbie, I fail to see how.

Please include a link to the source code and sample usages. No standard monads please.

解决方案

Phil Wadler has written many papers on monads, but the one to read first is a lot of fun and will be accessible to any programmer; it's called The essence of functional programming. The paper includes source code and sample usages.

A personal favorite of mine is the probability monad; if you can find Sungwoo Park's PhD thesis, it has a number of interesting example codes from robotics.

这篇关于monads的创意用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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