@array.zip(another_array) do |item1, item2|
puts "#{item1} #{item2}"
end
a = ["a", "b", "c"]
a.cycle { |x| puts x } # print, a, b, c, a, b, c,.. forever.
a.cycle(2) { |x| puts x } # print, a, b, c, a, b, c.
@array.zip(another_array) do |item1, item2|
puts "#{item1} #{item2}"
end
a = ["a", "b", "c"]
a.cycle { |x| puts x } # print, a, b, c, a, b, c,.. forever.
a.cycle(2) { |x| puts x } # print, a, b, c, a, b, c.