This was originally written using constants for code snippets (just like Tom Stuart did). I then wrote a "compiler" that read the individual snippets and built the complete lambda expression from scratch. Then I ran the expression through Ripper and Sorcerer to get the indented version of the code you see here.

I'm adding annotations to the original source code file and will release that when its done.

Oh, you want to know what it does? Either read Tom Stuart's original article, or just run the code (which will take a minute or so).

This was originally written using constants for code snippets (just like Tom Stuart did). I then wrote a "compiler" that read the individual snippets and built the complete lambda expression from scratch. Then I ran the expression through Ripper and Sorcerer to get the indented version of the code you see here.

I'm adding annotations to the original source code file and will release that when its done.

Oh, you want to know what it does? Either read Tom Stuart's original article, or just run the code (which will take a minute or so).