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:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}