Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PQueue ¶
func New ¶
func New[T cmp.Ordered](opts ...PQueueOption[T]) *PQueue[T]
Defaults to a queue which prioritises a higher priority
type PQueueOption ¶
func WithCapacity ¶
func WithCapacity[T cmp.Ordered](capacity int) PQueueOption[T]
func WithItems ¶
func WithItems[T cmp.Ordered](items ...T) PQueueOption[T]
func WithPriority ¶
func WithPriority[T cmp.Ordered](priority PriorityType) PQueueOption[T]
Click to show internal directories.
Click to hide internal directories.