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