Move priority queue to pq package; improve docs.

This commit is contained in:
2023-03-02 01:53:12 -08:00
parent 5e23a92314
commit b3b491d9a9
8 changed files with 255 additions and 155 deletions

View File

@@ -1,6 +1,7 @@
// Package circ implements a circular FIFO buffer.
package circ
// B is a generic, non-concurrent circular FIFO buffer.
// B is a circular FIFO buffer.
type B[T any] struct {
buf []T
len int