Merge and interleave two arrays in Ruby December 31, 2022 by Tarik You can do that with: a.zip(s).flatten.compact