linkedlist

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 3 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 struct {
	// contains filtered or unexported fields
}

func NewLinkedList

func NewLinkedList(elements ...any) *LinkedList

func (*LinkedList) Append

func (d *LinkedList) Append(element any) *LinkedList

func (*LinkedList) AppendLeft

func (d *LinkedList) AppendLeft(element any) *LinkedList

func (LinkedList) At

func (d LinkedList) At(index int) (value any, err error)

func (*LinkedList) Clear

func (d *LinkedList) Clear() *LinkedList

func (LinkedList) Concat

func (d LinkedList) Concat(another LinkedList) LinkedList

func (LinkedList) Copy

func (d LinkedList) Copy() LinkedList

func (LinkedList) Count

func (d LinkedList) Count(element any) (count int)

func (LinkedList) Empty

func (d LinkedList) Empty() bool

func (LinkedList) Equal

func (d LinkedList) Equal(another LinkedList) bool

func (LinkedList) Every

func (d LinkedList) Every(condition func(any) bool) bool

func (*LinkedList) Extend

func (d *LinkedList) Extend(another *LinkedList) *LinkedList

func (*LinkedList) ExtendLeft

func (d *LinkedList) ExtendLeft(another *LinkedList) *LinkedList

func (*LinkedList) Fill

func (d *LinkedList) Fill(element any, area ...int) *LinkedList

func (LinkedList) Filter

func (d LinkedList) Filter(condition func(any) bool) LinkedList

func (LinkedList) Find

func (d LinkedList) Find(by func(any) bool) (element any, found bool)

func (LinkedList) FindIndex

func (d LinkedList) FindIndex(by func(any) bool) (index int)

func (LinkedList) FindIndexes

func (l LinkedList) FindIndexes(by func(any) bool, counts ...int) (indexes []int)

func (LinkedList) FindLast

func (d LinkedList) FindLast(by func(any) bool) (element any, found bool)

func (LinkedList) FindLastIndex

func (d LinkedList) FindLastIndex(by func(any) bool) (index int)

func (LinkedList) FindLastIndexes

func (l LinkedList) FindLastIndexes(by func(any) bool, counts ...int) (indexes []int)

func (LinkedList) FindLasts

func (l LinkedList) FindLasts(by func(any) bool, counts ...int) (elements []any)

func (LinkedList) Finds

func (l LinkedList) Finds(by func(any) bool, counts ...int) (elements []any)

func (*LinkedList) ForEach

func (d *LinkedList) ForEach(action func(any) any) *LinkedList

func (LinkedList) Head

func (d LinkedList) Head() (element any, err error)

func (LinkedList) Includes

func (d LinkedList) Includes(element any) bool

func (LinkedList) IndexOf

func (d LinkedList) IndexOf(element any) (index int)

func (*LinkedList) Insert

func (d *LinkedList) Insert(index int, element any) *LinkedList

func (LinkedList) LastIndexOf

func (d LinkedList) LastIndexOf(element any) (index int)

func (LinkedList) Len

func (d LinkedList) Len() int

func (LinkedList) Map

func (d LinkedList) Map(handler func(any) any) LinkedList

func (LinkedList) MarshalJSON

func (l LinkedList) MarshalJSON() ([]byte, error)

func (*LinkedList) Pop

func (d *LinkedList) Pop() (element any, err error)

func (*LinkedList) PopLeft

func (d *LinkedList) PopLeft() (element any, err error)

func (LinkedList) Reduce

func (d LinkedList) Reduce(handler func(any, any) any, initial ...any) (result any, err error)

func (LinkedList) ReduceRight

func (d LinkedList) ReduceRight(handler func(any, any) any, initial ...any) (result any, err error)

func (*LinkedList) Remove

func (d *LinkedList) Remove(element any, counts ...int) *LinkedList

func (*LinkedList) RemoveByIndex

func (d *LinkedList) RemoveByIndex(index int) (element any, err error)

func (*LinkedList) RemoveIf

func (d *LinkedList) RemoveIf(condition func(any) bool, counts ...int) LinkedList

func (*LinkedList) RemoveRight

func (d *LinkedList) RemoveRight(element any, counts ...int) *LinkedList

func (*LinkedList) RemoveRightIf

func (d *LinkedList) RemoveRightIf(condition func(any) bool, counts ...int) LinkedList

func (*LinkedList) Replace

func (d *LinkedList) Replace(oldElement, newElement any, counts ...int) *LinkedList

func (*LinkedList) ReplaceIf

func (d *LinkedList) ReplaceIf(condition func(any) bool, newElement any, counts ...int) LinkedList

func (*LinkedList) ReplaceRight

func (d *LinkedList) ReplaceRight(oldElement, newElement any, counts ...int) *LinkedList

func (*LinkedList) ReplaceRightIf

func (d *LinkedList) ReplaceRightIf(condition func(any) bool, newElement any, counts ...int) LinkedList

func (*LinkedList) Reverse

func (d *LinkedList) Reverse() *LinkedList

func (*LinkedList) Rotate

func (d *LinkedList) Rotate(steps ...int) *LinkedList

func (*LinkedList) Set

func (d *LinkedList) Set(index int, element any) (err error)

func (LinkedList) Slice

func (d LinkedList) Slice(args ...int) LinkedList

func (LinkedList) Some

func (d LinkedList) Some(condition func(any) bool) bool

func (*LinkedList) Splice

func (d *LinkedList) Splice(start, deleteCount int, items ...any) LinkedList

func (LinkedList) String

func (l LinkedList) String() string

func (LinkedList) Tail

func (d LinkedList) Tail() (element any, err error)

func (LinkedList) ToArray

func (d LinkedList) ToArray() []any

func (LinkedList) ToReversed

func (d LinkedList) ToReversed() LinkedList

func (LinkedList) ToSpliced

func (d LinkedList) ToSpliced(start, deleteCount int, items ...any) LinkedList

func (*LinkedList) UnmarshalJSON

func (l *LinkedList) UnmarshalJSON(data []byte) (err error)

func (LinkedList) With

func (d LinkedList) With(index int, value any) LinkedList

Jump to

Keyboard shortcuts

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