oleiade / lane

Generic PriorityQueues, Queues, Stacks, and Deque data structures for Go
https://pkg.go.dev/github.com/oleiade/lane#pkg-types
MIT License
878 stars 76 forks source link

Add option to have a capped priority queue (f.e. always keep at max 100 elements) #16

Closed jrots closed 8 years ago

jrots commented 8 years ago

Just some additional functionality to have a capped priorityqueue (which I needed).

Could be that this change is too drastic to merge and you'd rather see this done outside the library, to keep it as clean as possible.