From: nvp Date: 2008-10-29T03:02:22+09:00 Subject: Re: lambda and multiple arguments: how?! On Tue, Oct 28, 2008 at 1:36 PM, David A. Black wrote: > You could call it as: code.call(pid,*params), This didn't work for me with: lambda { |pid,exit_code,ident| # ... } What am I missing here? > or maybe try this technique: > > func = lambda {|a,(b,c)| p a,b,c } > func.call(1,[2,3]) Very interesting and seems to work as I was hoping! Thanks! -- nvp "Of course, the US has many elements of socialism already since capitalists, like cats, tend to get themselves stuck up a tree every so often." -- Joe Johnston