outrun/outrun-core/lib/bitwise_or.run

14 lines
337 B
Text
Raw Normal View History

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