On Sun, 20 Feb 2005 03:04:41 +0900, David A. Black <dblack / wobblini.net> wrote:
> 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.

Dilimiter?  Separator?

Not that I'd mind having it, and your version of "interleave" as well.
Does leave me wondering if there would be a need for functions that
reverse those actions.

-- 
Bill Guindon (aka aGorilla)