Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comparator ¶
type Comparator func(l, r interface{}) int
type Heap ¶
type Heap interface { Push(value interface{}) error Pop() error Get() (interface{}, error) Size() int }
func NewHeapWithComparator ¶
func NewHeapWithComparator(compare Comparator) Heap
func NewIntHeap ¶
Click to show internal directories.
Click to hide internal directories.