Documentation
¶
Index ¶
- type LinkedList
- func (L *LinkedList) Add(value any)
- func (L *LinkedList) AddFirst(value any)
- func (L *LinkedList) Count() uint
- func (L *LinkedList) ForEach(f func(index uint, value any))
- func (L *LinkedList) Get(index uint) any
- func (L *LinkedList) GetFirst() any
- func (L *LinkedList) GetLast() any
- func (L *LinkedList) Includes(value any) bool
- func (L *LinkedList) Remove(value any)
- func (L *LinkedList) RemoveAll(value any)
- func (L *LinkedList) RemoveIndex(index uint) error
- func (L *LinkedList) Traversal()
- func (L *LinkedList) Update(index uint, value any) error
- type Node
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 New ¶
func New() *LinkedList
func (*LinkedList) AddFirst ¶ added in v0.1.3
func (L *LinkedList) AddFirst(value any)
First Index Add Node
func (*LinkedList) ForEach ¶ added in v0.1.3
func (L *LinkedList) ForEach(f func(index uint, value any))
Linked List Foreach
Click to show internal directories.
Click to hide internal directories.