ary=[ [[0, 0], [0, 1], [0, 2]],
[[0, 3], [0, 4], [0, 5]],
[[0, 6], [0, 7], [0, 8]] ]
I am trying to find the index in the "main" array that contains an array with [0, 4] in it, which is 1.
I've been working with the idea like this:
ary.each_index.select{|index| #(return index if [0,4] matches) }