MapSet.equal-question-mark
You're seeing just the function
equal-question-mark
, go back to MapSet module for more information.
Specs
Checks if two sets are equal.
The comparison between elements is done using ===/2
,
which a set with 1
is not equivalent to a set with
1.0
.
Examples
iex> MapSet.equal?(MapSet.new([1, 2]), MapSet.new([2, 1, 1]))
true
iex> MapSet.equal?(MapSet.new([1, 2]), MapSet.new([3, 4]))
false
iex> MapSet.equal?(MapSet.new([1]), MapSet.new([1.0]))
false