9 lines
160 B
Text
9 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
|