outrun/outrun-core/lib/less.run

12 lines
240 B
Text
Raw Normal View History

2022-08-04 17:38:00 +12:00
```doc
# Less
Values which wish to implement the `<` infix operator must implement this protocol.
```
protocol Less, as: do
2022-08-04 17:38:00 +12:00
```doc
Compare `self` and `other`, returning a Boolean.
2022-08-04 17:38:00 +12:00
```
def less?(self: Self, other: Any): Boolean
2022-08-04 17:38:00 +12:00
end