Documentation
¶
Index ¶
- type Buffer
- func (list *Buffer[T]) Add(item T)
- func (hist *Buffer[T]) Clear()
- func (hist *Buffer[T]) Initialize(initialSize, maximumSize int)
- func (hist *Buffer[T]) Length() int
- func (list *Buffer[T]) Match(ascending bool, predicate Predicate[T], limit int) []T
- func (list *Buffer[T]) Pop() (item T, success bool)
- func (list *Buffer[T]) Range(ascending bool, rangeFunction func(item *T) (stopIteration bool))
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer[T any] struct { // contains filtered or unexported fields }
func NewExpandableBuffer ¶
func (*Buffer[T]) Initialize ¶
Click to show internal directories.
Click to hide internal directories.