list

package
v0.0.0-...-736f5eb Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Length int
	Head   *Node
	Tail   *Node
}

func NewList

func NewList() *List

func (*List) Add

func (l *List) Add(value interface{}, index int) error

func (*List) Append

func (l *List) Append(value interface{})

func (*List) Clear

func (l *List) Clear()

func (*List) Concat

func (l *List) Concat(k *List)

func (*List) Each

func (list *List) Each(f func(node Node))

func (*List) Find

func (l *List) Find(node *Node) (int, error)

func (*List) Get

func (l *List) Get(index int) (*Node, error)

func (*List) IsEmpty

func (l *List) IsEmpty() bool

func (*List) Len

func (l *List) Len() int

func (*List) Map

func (list *List) Map(f func(node *Node))

func (*List) Prepend

func (l *List) Prepend(value interface{})

func (*List) Remove

func (l *List) Remove(value interface{}) error

type Node

type Node struct {
	Value interface{}
	Prev  *Node
	Next  *Node
}

func NewNode

func NewNode(value interface{}) *Node

Jump to

Keyboard shortcuts

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