...

/

Macros and Operators

Macros and Operators

Learn how to override operators using macros.

We can override the unary and binary operators in Elixir using macros. To do so, we need to remove any existing definition first.

Overriding operators example

For example, the operator + (which adds two numbers) is defined in the ...