Skip to content

Comment on "Introduction to Monads" with Clojure (video)

Comments

The two monad tutorials referenced in the talk and the clojure.contrib.monads source explain monads in the same way:

http://onclojure.com/2009/03/05/a-monad-tutorial-for-clojure... http://intensivesystems.net/tutorials.html

The onclojure tutorial shows how (let ..) and (for ..) expressions are all about nested functions and how you can construct them yourself with monads. Be sure to work through it to part 4 which shows an elegant solution using monads for the Monty Hall problem, which is about probabilities and distributions.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.