outrun/lib/bitwise_or.run

13 lines
337 B
Text

```doc
# Bitwise Or
Values which wish to implement the `|` infix operator must implement this protocol.
```
protocol BitwiseOr, as: do
```doc
Or `self` and `other` together, returning an option.
It is left up to the implementer to define when it should return `Some` or `None`.
```
def or(self: Self, other: Any): Option
end