I'm having trouble checking if a nested array contains a single array. For example:
a = [[1,2], [3,4]]
a.each do |i|
b= i.inspect
puts a.include?(b)
end
The output it false and false. If anyone could help out that would be great.
I'm having trouble checking if a nested array contains a single array. For example:
a = [[1,2], [3,4]]
a.each do |i|
b= i.inspect
puts a.include?(b)
end
The output it false and false. If anyone could help out that would be great.