Monads in Ruby

Back in July, I started working on a series of introductory articles about monads, in Ruby. I did a couple, intending to polish them up and do some more in preparation for announcing it, but then I sort of forgot about it.

Then today I discovered that why, bless his heart, had scooped me on my own article series announcement.

I’d been wondering about that sudden influx of comments.

So, okay. I’ll be putting some spit-and-polish on the stuff I’ve got tonight, and the third article in the series (wherein we build a monad on Array) should be out in a few days to a week. The one after that may take a bit longer as it will involve music.

There should be a few more after that, each article focusing on a particular monad, and then a final article which strips monads down to their lambda roots. So armed, you should be able to take your keenly-won knowledge of monads with you into any language.

So, anyway, here are the first two chapters of Monads in Ruby:

  1. Introduction
  2. Identity, The Littlest Monad

Don’t be surprised if they change a bit under you as I finish the editing process.

hoodwink.d enhanced