Macros and Operators
Learn how to override operators using macros.
We'll cover the following...
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 ...