From: Avdi Grimm Date: 2008-08-13T03:59:29+09:00 Subject: Re: How do I unsplat something? On Tue, Aug 12, 2008 at 12:39 PM, Shadowfirebird wrote: > # this do? > > def unsplat(x) > return [x].flatten > end Just a warning, #flatten is not the inverse of splat, because it recurses arbitrary levels of nested array. -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com