Package unicmp provides generic ordering function for all comparable types.
The ordering is made by compares of one or more output of maphash function with different seeds. The resulting ordering is transitive and anticommutative, suitable for sorting and implementation of algorithms on top of sorted collections.
This section is empty.
This section is empty.
Cmp returns
-1 if x is less than y, 0 if x equals y, +1 if x is greater than y.
Equal returns true if x == y.
Less returns true if x sorts before y (x < y).
This section is empty.