list

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

func New

func New() *List

func (*List) Back

func (l *List) Back() *Node

func (*List) Free

func (l *List) Free()

func (*List) Front

func (l *List) Front() *Node

func (*List) Init

func (l *List) Init() *List

func (*List) PushBack

func (l *List) PushBack(value Value) *Node

func (*List) PushFront

func (l *List) PushFront(value Value) *Node

func (*List) Remove

func (l *List) Remove(n *Node)

func (*List) Values

func (l *List) Values() []Value

type Node

type Node struct {
	Value Value
	// contains filtered or unexported fields
}

func NewNode

func NewNode(value Value) *Node

func (*Node) Free

func (n *Node) Free()

func (*Node) Next

func (n *Node) Next() *Node

type Value

type Value = int

template type List(Value,Allocator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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