list

package
v0.0.0-...-5e646d6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 0 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[E any] struct {
	// contains filtered or unexported fields
}

func NewLinkedList

func NewLinkedList[E any]() *LinkedList[E]

func (*LinkedList[E]) Append

func (l *LinkedList[E]) Append(e E) bool

func (*LinkedList[E]) Clear

func (l *LinkedList[E]) Clear()

func (*LinkedList[E]) First

func (l *LinkedList[E]) First() E

func (*LinkedList[E]) Get

func (l *LinkedList[E]) Get(index int) E

func (*LinkedList[E]) IndexOf

func (l *LinkedList[E]) IndexOf(e E) int

func (*LinkedList[E]) Insert

func (l *LinkedList[E]) Insert(index int, e E)

func (*LinkedList[E]) Last

func (l *LinkedList[E]) Last() E

func (*LinkedList[E]) LastIndexOf

func (l *LinkedList[E]) LastIndexOf(e E) int

func (*LinkedList[E]) Len

func (l *LinkedList[E]) Len() int

func (*LinkedList[E]) Prepend

func (l *LinkedList[E]) Prepend(e E) bool

func (*LinkedList[E]) Remove

func (l *LinkedList[E]) Remove(e E) bool

func (*LinkedList[E]) RemoveAt

func (l *LinkedList[E]) RemoveAt(index int) E

func (*LinkedList[E]) RemoveFirst

func (l *LinkedList[E]) RemoveFirst() E

func (*LinkedList[E]) RemoveLast

func (l *LinkedList[E]) RemoveLast() E

func (*LinkedList[E]) Set

func (l *LinkedList[E]) Set(index int, e E) E

Jump to

Keyboard shortcuts

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