linkedlist

package
v0.0.0-...-fe2311f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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 Node

type Node[T nodeVal] struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode[T nodeVal](val T) *Node[T]

func (*Node[T]) Head

func (n *Node[T]) Head() *Node[T]

func (Node[T]) Length

func (n Node[T]) Length() int

func (*Node[T]) LinkNext

func (n *Node[T]) LinkNext(m *Node[T])

func (*Node[T]) LinkPrev

func (n *Node[T]) LinkPrev(m *Node[T])

func (Node[T]) Next

func (n Node[T]) Next() *Node[T]

func (Node[T]) Prev

func (n Node[T]) Prev() *Node[T]

func (*Node[T]) Tail

func (n *Node[T]) Tail() *Node[T]

func (Node[T]) Value

func (n Node[T]) Value() T

Jump to

Keyboard shortcuts

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