outrun/lib/bitwise_xor.run

14 lines
331 B
Text
Raw Normal View History

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