From: "David A. Black" Date: 2005-02-20T03:04:41+09:00 Subject: Re: [rcr] Array#join non string arguments Hi -- On Sun, 20 Feb 2005, Simon Strandgaard wrote: > A proposal: > > [1, 2, 3, 4, 5, 6].join(0) #-> [1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6] > > > I would like to interleave an arrray with another element. > This is similar to what the current Array#join does, except that > it converts the elements to strings. > > > Maybe find a better name, for instance #interleave. Interleaving, to me, suggests this: a = [1,2,3] b = [4,5,6] a.interleave(b) # => [1,4,2,5,3,6] If you're just using one item, it's more like "interspersing" or something. David -- David A. Black dblack@wobblini.net