Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
Comparator should return if i is less than j.
type Sorter ¶
type Sorter[T constraints.Ordered] interface { Sort([]T, Comparator[T]) }
Sorter is the interface that has to be implemented by sorting algorithms in this package.
type SorterAny ¶
type SorterAny[T any] interface { SortAny([]T, Comparator[T]) }
SorterAny is the interface that has to be implemented by sorting algorithms in this package that want to sort any slice type.
Click to show internal directories.
Click to hide internal directories.