class Concurrent::Maybe
def <=>(other)
-
(Integer)
- 0 if self and other are both `Nothing`;
def <=>(other) if nothing? other.nothing? ? 0 : -1 else other.nothing? ? 1 : just <=> other.just end end
(Integer)
- 0 if self and other are both `Nothing`;
def <=>(other) if nothing? other.nothing? ? 0 : -1 else other.nothing? ? 1 : just <=> other.just end end