Does the sequence s
contain t
? Equality is tested using same
.
Return a vector with only the distinct elements from the sequence s
.
Return a vector with only the distinct elements from the sequence s
.
"distinct" in this case means compare unequal using same
. The
first occurrence of each distinct element is kept.
As for same
, except that if the two values are Some
options
containing references, they are unwrapped first and the contents are
compared by reference.
Compare two arbitrary values.
Compare two arbitrary values. If they are both references, use reference equality, otherwise use value equality.
Compare two Iterable
collections or options and tuples containing that kind of
collection.
Compare two Iterable
collections or options and tuples containing that kind of
collection. Use same
to compare the individual elements.
Utility module for comparison routines.