linked_list

package
v0.0.0-...-9899634 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkedList

type LinkedList[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *LinkedList[T]

func (*LinkedList[T]) Add

func (l *LinkedList[T]) Add(t T)

func (*LinkedList[T]) AddAll

func (l *LinkedList[T]) AddAll(sequence iter.Seq[T])

func (*LinkedList[T]) AddBack

func (l *LinkedList[T]) AddBack(t T)

func (*LinkedList[T]) AddFront

func (l *LinkedList[T]) AddFront(t T)

func (*LinkedList[T]) All

func (l *LinkedList[T]) All() iter.Seq[T]

func (*LinkedList[T]) Empty

func (l *LinkedList[T]) Empty() bool

func (*LinkedList[T]) Get

func (l *LinkedList[T]) Get(idx int) T

func (*LinkedList[T]) Peek

func (l *LinkedList[T]) Peek() T

func (*LinkedList[T]) PeekBack

func (l *LinkedList[T]) PeekBack() T

func (*LinkedList[T]) PeekFront

func (l *LinkedList[T]) PeekFront() T

func (*LinkedList[T]) Pop

func (l *LinkedList[T]) Pop() T

func (*LinkedList[T]) Push

func (l *LinkedList[T]) Push(t T)

func (*LinkedList[T]) Remove

func (l *LinkedList[T]) Remove() T

func (*LinkedList[T]) RemoveBack

func (l *LinkedList[T]) RemoveBack() T

func (*LinkedList[T]) RemoveFront

func (l *LinkedList[T]) RemoveFront() T

func (*LinkedList[T]) Set

func (l *LinkedList[T]) Set(idx int, t T)

func (*LinkedList[T]) Size

func (l *LinkedList[T]) Size() int

func (*LinkedList[T]) String

func (l *LinkedList[T]) String() string

Jump to

Keyboard shortcuts

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