I need to check if array
a1 = [x, y]
is presented in array of arrays like
a2 = [ [a, b], [c,d], [e, f] ]
with Ruby 1.9.
For example, if x == c and y == d then function must be True.
I'v tried
a2.includes? a1 and a1 in a2
but both doesent work.
a2.any? { |x| x.eql? a1 }do?include?ArrayandEnumerablefrom Ruby Doc up in my browser at all times when I am coding. It is an invaluable source.