12 lines
207 B
Text
12 lines
207 B
Text
|
```doc
|
||
|
# Negation
|
||
|
|
||
|
Perform a unary negation on the value. Used by the unary `-` operator.
|
||
|
```
|
||
|
protocol Negation, as: do
|
||
|
```doc
|
||
|
Return the negative value of `self`.
|
||
|
```
|
||
|
def neg(self: Self): Self
|
||
|
end
|