Keyword.equal-question-mark
You're seeing just the function
equal-question-mark
, go back to Keyword module for more information.
Specs
Checks if two keywords are equal.
Two keywords are considered to be equal if they contain the same keys and those keys contain the same values.
Examples
iex> Keyword.equal?([a: 1, b: 2], [b: 2, a: 1])
true
iex> Keyword.equal?([a: 1, b: 2], [b: 1, a: 2])
false
iex> Keyword.equal?([a: 1, b: 2, a: 3], [b: 2, a: 3, a: 1])
true
Comparison between values is done with ===/3
,
which means integers are not equivalent to floats:
iex> Keyword.equal?([a: 1.0], [a: 1])
false