dll

package
v0.0.0-...-67f5045 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 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 DLItem

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

DLItem DoubleLinkedList Item

func (*DLItem) Next

func (item *DLItem) Next() (*DLItem, error)

Next function returns next item

func (*DLItem) Prev

func (item *DLItem) Prev() (*DLItem, error)

Prev function returns previous item

func (*DLItem) Value

func (item *DLItem) Value() interface{}

Value function returns Data

type DLList

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

DLList DoubleLinkedList container

func (DLList) First

func (list DLList) First() *DLItem

First returns first element of list

func (DLList) Last

func (list DLList) Last() *DLItem

Last returns last element of list

func (DLList) Len

func (list DLList) Len() int

Len function returns length of list

func (*DLList) PushBack

func (list *DLList) PushBack(v interface{})

PushBack function adds item to the back of list

func (*DLList) PushFront

func (list *DLList) PushFront(v interface{})

PushFront function adds item to the front of list

func (*DLList) Remove

func (list *DLList) Remove(i *DLItem)

Remove function removes item from list

Jump to

Keyboard shortcuts

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