package
Version:
v0.0.0-...-9c9a4a3
Opens a new window with list of versions in this module.
Published: Jan 7, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type PQ[T any] struct {
}
func New[T any](fn less[T]) *PQ[T]
func (q *PQ[T]) Len() int
func (q *PQ[T]) Pop() any
func (q *PQ[T]) Push(v any)
func (q *PQ[T]) Swap(i, j int)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.