> Hi!
> I wonder if it is possible to expand array as function arguments. Like
>
> def foo( a, b, c)
> end
>
> foo [1,2,3].to_args
> Is possible to do it?

How about foo *[1, 2, 3] ? (Note the "*" -"splat").


-- 
Regards,
Rimantas
--
http://rimantas.com/