linkedlist

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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 struct {
	Value interface{}
	// contains filtered or unexported fields
}

func NewItem

func NewItem(value interface{}) *Item

type List

type List struct {
	// contains filtered or unexported fields
}

func NewList

func NewList() *List

func (*List) End

func (this *List) End() *Item

func (*List) Head

func (this *List) Head() *Item

func (*List) Len

func (this *List) Len() int

func (*List) Push

func (this *List) Push(item *Item)

func (*List) Range

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

func (*List) Remove

func (this *List) Remove(item *Item)

func (*List) Reset

func (this *List) Reset()

Jump to

Keyboard shortcuts

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