list

package
v5.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elem

type Elem[V any] struct {
	Value V
	// contains filtered or unexported fields
}

func NewElem

func NewElem[V any](v V) *Elem[V]

func (*Elem[V]) Next

func (e *Elem[V]) Next() *Elem[V]

func (*Elem[V]) Prev

func (e *Elem[V]) Prev() *Elem[V]

type List

type List[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any]() *List[V]

func (*List[V]) Back

func (l *List[V]) Back() *Elem[V]

func (*List[V]) Front

func (l *List[V]) Front() *Elem[V]

func (*List[V]) Len

func (l *List[V]) Len() int

func (*List[V]) PopElem

func (l *List[V]) PopElem(e *Elem[V]) *Elem[V]

func (*List[V]) PushBack

func (l *List[V]) PushBack(e *Elem[V]) *Elem[V]

func (*List[V]) PushFront

func (l *List[V]) PushFront(e *Elem[V]) *Elem[V]

Jump to

Keyboard shortcuts

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