From: Farrel Lifson Date: 2006-11-09T22:05:21+09:00 Subject: Re: Array question On 09/11/06, Peter Szinek wrote: > Hello, > > > I have a function like this: > > def f(*args) > #do something > end > > and I have an array, say > > a = [1,2,3] > > Now I would like to call f() with the contents of the array i.e. > > f(1,2,3) in this case (i.e. not f([1,2,3]) ) > > What is the most Rubyish way to accomplish this? > > TIA, > Peter > > -- > http://www.rubyrailways.com > > f(*a) Farrel