outrun/outrun-core/lib/negation.outrun

12 lines
207 B
Text
Raw Normal View History

2022-08-09 12:39:52 +12:00
```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