From: Christian Neukirchen Date: 2005-03-20T05:52:06+09:00 Subject: Re: Paul Graham recommends Ruby "Florian Frank" writes: > Martin DeMello wrote: > >>a[1] works nicely for lambdas too, btw (not that I wouldn't like to see >>a(1), of course). >> >> > Try the 1.9 cvs version: > > irb(main):001:0> a = lambda { |x| x * 2 } > => # > irb(main):002:0> a(1) > => 2 > irb(main):003:0> a 1 > => 2 Katsu! http://www.buddhamind.info/leftside/arty/requiz/lit.htm > Florian Frank -- Christian Neukirchen http://chneukirchen.org