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