Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UniqueQueue ¶
UniqueQueue provides a queue that only allows unique items to be appended to it.
func (*UniqueQueue) Append ¶
func (q *UniqueQueue) Append(i Item)
Append appends an item to the queue. If the item already exist, nothing is added.
func (*UniqueQueue) Empty ¶
func (q *UniqueQueue) Empty() bool
Empty checks whether the queue is empty
func (*UniqueQueue) Has ¶
func (q *UniqueQueue) Has(i Item) bool
Has checks whether a item exist in the queue
func (*UniqueQueue) Head ¶
func (q *UniqueQueue) Head() Item
Head get an item from the head of the queue
Click to show internal directories.
Click to hide internal directories.