outrun/lib/equality.run

11 lines
241 B
Text

```doc
# Equality
Values which wish to implement the `==` infix operator must implement this protocol.
```
protocol Equality, as:
```doc
Compare `lhs` and `rhs`, returning a Boolean.
```
def equal?(lhs: Self, rhs: Any): Boolean
end