linkedlist

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

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

func NewItem

func NewItem[T any](value T) *Item[T]

type List

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

func NewList

func NewList[T any]() *List[T]

func (*List[T]) End

func (this *List[T]) End() *Item[T]

func (*List[T]) Head

func (this *List[T]) Head() *Item[T]

func (*List[T]) Len

func (this *List[T]) Len() int

func (*List[T]) Push

func (this *List[T]) Push(item *Item[T])

func (*List[T]) Range

func (this *List[T]) Range(f func(item *Item[T]) (goNext bool))

func (*List[T]) Remove

func (this *List[T]) Remove(item *Item[T])

func (*List[T]) Reset

func (this *List[T]) Reset()

Jump to

Keyboard shortcuts

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