I have an array of arrays:
array = [
[1,2,3],
[4,5,6],
[7,8,9]
]
How would I iterate over each array and print them out individually, without using map?
Something like
array.each do |a|
puts a
end
> [1,2,3]
> [4,5,6]
> [7,8,9]
puts awith another.eachcall, this time witha.eachinstead ofarray.each.