outrun/outrun-core/lib/greater.run

15 lines
270 B
Text
Raw Normal View History

2022-08-19 16:25:42 +12:00
use Any
use Boolean
2022-08-04 17:38:00 +12:00
```doc
# Greater
Values which wish to implement the `>` infix operator must implement this protocol.
```
protocol Greater, 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 greater?(self: Self, other: Any): Boolean
2022-08-04 17:38:00 +12:00
end