outrun/outrun-core/lib/division.outrun

16 lines
352 B
Text

use Any
use Option
```doc
# Division
Values which wish to implement the `/` infix operator must implement this protocol.
```
protocol Division, as: do
```doc
Divide `self` by `other`, returning an option.
It is left up to the implementer to define when it should return `Some` or `None`.
```
def divide(self: Self, other: Any): Option
end