Hi --

On Sun, 20 Mar 2005, Florian Frank wrote:

> 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 }
> => #<Proc:0xb7c6118c@(irb):1>
> irb(main):002:0> a(1)
> => 2
> irb(main):003:0> a 1
> => 2

I guess I spoke too soon in my last message.

I'm getting very confused by all of this, especially calling a lambda
with ().  (I know it's a popular idea, is done in other languages,
etc.  I mean I'm getting confused by how all these things fit into
Ruby.)

Matz: can you clarify where this is going?


David

-- 
David A. Black
dblack / wobblini.net