An ordering that says two values are equal if same
says they
are, otherwise earlier elements are greater than later ones.
Does the iterable 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 using same
.
As for distinct
but works over a sequence of sequences.
Return the first zero-based index at which elem
occurs in s
using same
to perform comparisons, or -1 if elem
does not occur in s
.
Return the last zero-based index at which elem
occurs in s
using same
to perform comparisons, or -1 if elem
does not occur in s
.
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 and not
tuples, use reference equality. If they are tuples, use same
to
compare the components. 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 in the same order.
Compare two Seq
collections or options and tuples containing that kind of
collection.
Compare two Seq
collections or options and tuples containing that kind of
collection. Use same
to compare the individual elements in any order.
Utility module for comparison routines.