1 Haskell-style monad do-notation for Ruby
2 ========================================
14 map(&f).inject([]){ |a,b| a+b }
25 # => ["AB", "Ab", "aB", "ab"]
27 Its biggest failing, and I don't see a way
28 out, is that you don't get lexical scope. ParseTree
29 is wonderful, but it can't work miracles.
31 You can work around it, though, by passing in
32 stuff from the outside as arguments to `run',
33 and specifying those arguments on the block
36 For more examples, see the test suite.
38 By Aanand Prasad (aanand.prasad@gmail.com)