Documentation ¶
Overview ¶
Compare ordered values
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comparable ¶
type Comparable[C any] interface { // Returns -1 if operand greater; 0 if operand equal; 1 if operand less Compare(operand C) int }
Generic comparison interface
Click to show internal directories.
Click to hide internal directories.