Versions in this module Expand all Collapse all v0 v0.1.1 Jan 29, 2024 v0.1.0 Jun 14, 2023 Changes in this version + func Remove(slice *[]T, item T) (removed bool) + type BlockingHeap struct + func NewBlockingHeap(less func(a, b T) bool) *BlockingHeap[T] + func (h *BlockingHeap[T]) Clear() (cleared []T) + func (h *BlockingHeap[T]) Len() int + func (h *BlockingHeap[T]) Peek() (item T) + func (h *BlockingHeap[T]) Pop() (item T) + func (h *BlockingHeap[T]) Push(item T) + func (h *BlockingHeap[T]) Remove(item T) bool + func (h *BlockingHeap[T]) Slice() (slice []T) + func (h *BlockingHeap[T]) Wait() + type Heap struct + func NewHeap(less func(a, b T) bool) *Heap[T] + func (h *Heap[T]) Clear() (cleared []T) + func (h *Heap[T]) Len() int + func (h *Heap[T]) Peek() (item T) + func (h *Heap[T]) Pop() (item T) + func (h *Heap[T]) Push(item T) + func (h *Heap[T]) Remove(item T) bool + func (h *Heap[T]) Slice() (slice []T) + type Set map[T]struct + func NewSet(items ...T) (result Set[T]) + func (s Set[T]) Add(item T) + func (s Set[T]) Contains(item T) (found bool) + func (s Set[T]) Remove(item T) + func (s Set[T]) Slice() (result []T)