Showing my interactive irb session:
2.3.0 :005 > ('a'..'c').to_a.combination(2).to_a
=> [["a", "b"], ["a", "c"], ["b", "c"]]
2.3.0 :006 > ('a'..'c').to_a.combination(2).to_a.each do |arr|
2.3.0 :007 > puts arr
2.3.0 :008?> end
a
b
a
c
b
c
=> [["a", "b"], ["a", "c"], ["b", "c"]]
How can I get this array of arrays to show each internal array on separate line, like so..?
["a", "b"]
["a", "c"]
["b", "c"]