Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSortedUniqueQueue ¶
func NewSortedUniqueQueue(compareFunc CompareFunc) *sortedUniqueList
NewSortedUniqueQueue is a constructor for the sortedUniqueList
Types ¶
type CompareFunc ¶
CompareFunc is a function to sort nodes in a queue
type IteratorFunc ¶
type IteratorFunc func(Item)
IteratorFunc is a function to be used for each item in the queue
type SortedUniqueList ¶
type SortedUniqueList interface { Add(item Item) First() Item ForEach(iteratorFunc IteratorFunc) Delete(i Item) Len() int }
SortedUniqueList is an interface of sortedUniqueList
Click to show internal directories.
Click to hide internal directories.