1
2
3
4
5
6
a = [1, 2]
b = { a => 1 }
a.delete_at(1)

b.has_key?(a) # => false
b.keys.include?(a) # => true