Over a million developers have joined DZone.

Interleave 3 Arrays

·
abc = %w(a1 a2 a3).zip %w(b1 b2 b3), %w(c1 c2 c3)
#=> [["a1", "b1", "c1"], ["a2", "b2", "c2"], ["a3", "b3", "c3"]]

Resources:
 - Interleave 3 or more arrays [dzone.com]
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}