Ecto.Type.equal-question-mark

You're seeing just the function equal-question-mark, go back to Ecto.Type module for more information.
Link to this function

equal?(type, term1, term2)

View Source

Specs

equal?(t(), term(), term()) :: boolean()

Checks if two terms are equal.

Depending on the given type performs a structural or semantical comparison.

Examples

iex> equal?(:integer, 1, 1)
true
iex> equal?(:decimal, Decimal.new("1"), Decimal.new("1.00"))
true