Help us shape the future of Go! Take the 2026 Go Developer Survey

structs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareFunc

type CompareFunc func(a Item, b Item) bool

type Item

type Item interface {
	DeepCopy() Item
	Equals(Item) bool
}

type IteratorFunc

type IteratorFunc func(Item)

type SortedUniqueList

type SortedUniqueList struct {
	// contains filtered or unexported fields
}

func NewSortedUniqueQueue

func NewSortedUniqueQueue(compareFunc CompareFunc) *SortedUniqueList

func (*SortedUniqueList) Add

func (q *SortedUniqueList) Add(item Item)

func (*SortedUniqueList) Delete

func (q *SortedUniqueList) Delete(i Item)

func (*SortedUniqueList) First

func (q *SortedUniqueList) First() Item

func (*SortedUniqueList) ForEach

func (q *SortedUniqueList) ForEach(iteratorFunc IteratorFunc)

func (*SortedUniqueList) Len

func (q *SortedUniqueList) Len() int

Jump to

Keyboard shortcuts

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