Equality for Lists
l
Two
lists
are defined to be
equal
when
they have the same number of elements,
and their elements occur in the same
order.
l
Examples:
l
[1, 2, 3] is equal to [1, 2, 3]
l
[1, 2, 3] is not equal to [3, 1, 2]
l
[1, 2, 3] is not equal to [1, 1, 2, 3]