10 lines
160 B
Text
10 lines
160 B
Text
|
```doc
|
||
|
# Absolute value
|
||
|
```
|
||
|
protocol AbsoluteValue, as: do
|
||
|
```doc
|
||
|
Return the absolute value (or magnitude) of `self`.
|
||
|
```
|
||
|
def abs(self: Self): Self
|
||
|
end
|