outrun/lib/multiplication.run

13 lines
360 B
Text

```doc
# Multiplication
Values which wish to implement the `%` infix operator must implement this protocol.
```
protocol Multiplication, as:
```doc
Multiply `lhs` by `rhs`, returning an option containing the result
It is left up to the implementer to define when it should return `Some` or `None`.
```
def multiply(lhs: Self, rhs: Any): Option
end