linklist

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linklist struct {
	// contains filtered or unexported fields
}
func NewLinklist() *Linklist

func (*Linklist) Back

func (l *Linklist) Back() *Node

func (*Linklist) Demote

func (l *Linklist) Demote(p *Node)

func (*Linklist) Empty

func (l *Linklist) Empty() bool

func (*Linklist) Front

func (l *Linklist) Front() *Node

func (*Linklist) Head

func (l *Linklist) Head() *Node

func (*Linklist) InsertAfter

func (l *Linklist) InsertAfter(prior *Node, val interface{}) *Node

func (*Linklist) Promote

func (l *Linklist) Promote(p *Node)

func (*Linklist) PushBack

func (l *Linklist) PushBack(val interface{}) *Node

func (*Linklist) PushFront

func (l *Linklist) PushFront(val interface{}) *Node

func (*Linklist) Remove

func (l *Linklist) Remove(p *Node)

func (*Linklist) Tail

func (l *Linklist) Tail() *Node

type Node

type Node struct {
	Val interface{}
	// contains filtered or unexported fields
}

linklist with head node and tail node

func (*Node) Next

func (p *Node) Next() *Node

func (*Node) Prior

func (p *Node) Prior() *Node

Jump to

Keyboard shortcuts

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