list

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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