Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prque ¶
type Prque struct {
// contains filtered or unexported fields
}
Prque is priority queue data structure.
func (*Prque) Pop ¶
Pop pops the value with the greatest priority off the stack and returns it. Currently no shrinking is done.
func (*Prque) PopItem ¶
func (p *Prque) PopItem() interface{}
PopItem pops only the item from the queue, dropping the associated priority value.
func (*Prque) Push ¶
Push pushes a value with a given priority into the queue, expanding if necessary.
Click to show internal directories.
Click to hide internal directories.