Versions in this module Expand all Collapse all v0 v0.1.1 Sep 10, 2022 v0.1.0 Sep 10, 2022 Changes in this version + func CompareOrdered(a, b V) int + func DoubleCapacity(before, need int) (after int) + func EqualOrdered(a, b V) bool + func Filter(collection Collection[V], keep PredicateFunc[V]) + func GreaterOrdered(a, b V) bool + func LessOrdered(a, b V) bool + func Realloc(size int, s []T) []T + func ReverseCompareOrdered(a, b V) int + type CapacityFunc func(old, need int) int + type Collection interface + Add func(value V) bool + AddAll func(other Collection[V]) bool + AddIterator func(iter Iterator[V]) bool + Clear func() + Contains func(value V) bool + ContainsAll func(other Collection[V]) bool + ContainsIterator func(iter Iterator[V]) bool + IsEmpty func() bool + Iterator func() Iterator[V] + Remove func(value V) bool + RemoveAll func(other Collection[V]) bool + RemoveIterator func(iter Iterator[V]) bool + RetainAll func(other Collection[V]) bool + Size func() int + Values func() []V + type CompareFunc func(a, b V) (result int) + func Reverse(cmp CompareFunc[V]) CompareFunc[V] + type Deque interface + AddFirst func(value V) + AddLast func(value V) + GetFirst func() V + GetLast func() V + Offer func(value V) bool + OfferFirst func(value V) bool + OfferLast func(value V) bool + Peek func() V + PeekFirst func() V + PeekLast func() V + Poll func() V + PollFirst func() V + PollLast func() V + Pop func() V + Push func(value V) + RemoveFirst func() V + RemoveFirstOccurrence func(value V) bool + RemoveHead func() V + RemoveLast func() V + RemoveLastOccurrence func(value V) bool + type EqualFunc func(a, b V) (equal bool) + type Iterator interface + HasNext func() bool + Next func() V + Remove func() + type LessFunc func(a, b V) (less bool) + type List interface + AddIndex func(index int, value V) + Get func(index int) V + IndexOf func(value V) int + LastIndexOf func(value V) int + RemoveIndex func(index int) V + Set func(index int, value V) V + Sort func(cmp LessFunc[V]) + type ListIterator interface + HasNext func() bool + HasPrevious func() bool + Next func() V + NextIndex func() int + Previous func() V + PreviousIndex func() int + Remove func() + type PredicateFunc func(v V) (result bool) + type Queue interface + Element func() V + Peek func() V + Poll func() V + RemoveHead func() V + type Set interface