lasitha
2/25/2009 7:27:00 AM
On Wed, Feb 25, 2009 at 10:34 AM, Vetrivel Vetrivel
<vetrivel.bksys@gmail.com> wrote:
> Ashikali Ashikali wrote:
>> Answer is ,
>> =A0 =A0 =A0a + b + c
>
> We can do this .In ruby The '+' is method.You are calling '+' method
> three times.But I have asked using single function we have to do.
Why? Is this a quiz question? Please explain why it matters that
it's a single method call.
Does this work for you?:
[a, b, c].flatten
Cheers,
lasitha