pq

package
v0.0.0-...-f28a933 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elem

type Elem struct {
	Priority int64
	Value    interface{}
	// contains filtered or unexported fields
}

type PriorityQueue

type PriorityQueue interface {
	Len() int

	Push(priority int64, value interface{})
	Pop() (*Elem, bool) // Pops the LOWEST priority
}

func New

func New() PriorityQueue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL