Documentation ¶
Overview ¶
Package sortutil implements utilities for sorting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByLesser ¶
ByLesser implements the heap.Interface using a Lesser over a slice.
func (*ByLesser) Clear ¶
func (s *ByLesser) Clear()
Clear removes all elements from the underlying slice.
type LesserFunc ¶
LesserFunc implements the Lesser interface using a function.
func (LesserFunc) Less ¶
func (f LesserFunc) Less(a, b any) bool
Less implements the Lesser interface.
Click to show internal directories.
Click to hide internal directories.