Creative uses of monads

后端 未结 8 793
再見小時候
再見小時候 2020-12-07 07:39

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.

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 08:12

    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.

提交回复
热议问题