Versions in this module Expand all Collapse all v0 v0.4.6 Jun 16, 2022 Changes in this version + type Elem struct + Value E + Weight W + type PriorityQueue struct + func NewPriorityQueue(desc bool) *PriorityQueue + func (e *PriorityQueue) Len() int + func (e *PriorityQueue) Less(i, j int) bool + func (e *PriorityQueue) Swap(i, j int) + func (p *PriorityQueue) Clone() *PriorityQueue + func (p *PriorityQueue) Elems() []Elem[int32, float32] + func (p *PriorityQueue) Peek() (int32, float32) + func (p *PriorityQueue) Pop() (int32, float32) + func (p *PriorityQueue) Push(v int32, weight float32) + func (p *PriorityQueue) Reverse() *PriorityQueue + func (p *PriorityQueue) Values() []int32 + type TopKFilter struct + func NewTopKFilter(k int) *TopKFilter[T, W] + func (e *TopKFilter) Len() int + func (e *TopKFilter) Less(i, j int) bool + func (e *TopKFilter) Pop() interface{} + func (e *TopKFilter) Swap(i, j int) + func (filter *TopKFilter[T, W]) PopAll() ([]T, []W) + func (filter *TopKFilter[T, W]) Push(item T, weight W)