Util.EqualityOperator (morphix v0.8.1)
The equalif*
method is designed to allow for unorderd equality comparison between lists. In an ordered comparison, [1,2,3]
is not considered equal to [3,2,1]
, but equali/fy?|form?
would consider those two lists to be equal.
equalify|equaliform?
will accept inputs other than maps, tuples, or lists:
###Examples:
iex> Morphix.equaliform?(1,1)
true
iex> Morphix.equaliform?(DateTime.utc_now(), DateTime.utc_now())
false
But it is designed for situations where you have two Enumerables, and you want to see if they have the same elements.