+
Point of view
ANY
deferred class COMPARABLE
Summary
Overview
exported features
  • is_equal (other: COMPARABLE): BOOLEAN
    Is other attached to an object considered equal to current object?
  • infix "<" (other: COMPARABLE): BOOLEAN
    Is Current strictly less than other?
  • infix "<=" (other: COMPARABLE): BOOLEAN
    Is Current less than or equal other?
  • infix ">" (other: COMPARABLE): BOOLEAN
    Is Current strictly greater than other?
  • infix ">=" (other: COMPARABLE): BOOLEAN
    Is Current greater than or equal than other?
  • in_range (lower: COMPARABLE, upper: COMPARABLE): BOOLEAN
    Return True if Current is in range [lower..upper]
    See also min, max, compare.
  • compare (other: COMPARABLE): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • three_way_comparison (other: COMPARABLE): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • min (other: COMPARABLE): COMPARABLE
    Minimum of Current and other.
  • max (other: COMPARABLE): COMPARABLE
    Maximum of Current and other.
is_equal (other: COMPARABLE): BOOLEAN
effective function
Is other attached to an object considered equal to current object?
infix "<" (other: COMPARABLE): BOOLEAN
deferred function
Is Current strictly less than other?
infix "<=" (other: COMPARABLE): BOOLEAN
effective function
Is Current less than or equal other?
infix ">" (other: COMPARABLE): BOOLEAN
effective function
Is Current strictly greater than other?
infix ">=" (other: COMPARABLE): BOOLEAN
effective function
Is Current greater than or equal than other?
in_range (lower: COMPARABLE, upper: COMPARABLE): BOOLEAN
effective function
Return True if Current is in range [lower..upper]
See also min, max, compare.
compare (other: COMPARABLE): INTEGER_32
effective function
If current object equal to other, 0 if smaller, -1; if greater, 1.
three_way_comparison (other: COMPARABLE): INTEGER_32
effective function
If current object equal to other, 0 if smaller, -1; if greater, 1.
min (other: COMPARABLE): COMPARABLE
effective function
Minimum of Current and other.
max (other: COMPARABLE): COMPARABLE
effective function
Maximum of Current and other.