Skip to content

Subtract Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

- Operator

The - operator is used for subtracting two numeric types.

1 - 2

Override

The - operator can be defined for non-numeric types or type combinations with the following:

func __subtract__(a $A, b $B) $C 

where $A, $B and $C are any valid types

See __subtract__ for more information.

Clone this wiki locally