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.

[3,6,9].map{|x|[x,0]}.flatten[0..-2]
[3, 0, 6, 0, 9]