Robert Klemme <bob.news / gmx.net> wrote:
> "Martin DeMello" <martindemello / yahoo.com> schrieb im Newsbeitrag
> >> b.inject(lambda {}) {|a,v| a.call; print v; lambda {print " -- "}}
> 1 -- 2 -- 3 -- 4 -- 5=> #<Proc:0x100c43a0@(irb):12>
> 
> >> print b.inject{|x,y| print x, " -- ";y}, "\n"
> 1 -- 2 -- 3 -- 4 -- 5

Wow.  It took me several minutes to understand this stuff, but now
that I do, I really like it!

Thanks again.

Cheers,
Navin.