list

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Overview

A better List then native

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

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

func (Iterator) Back

func (i Iterator) Back() Iterator

func (Iterator) Destroy

func (i Iterator) Destroy()

func (Iterator) Equal

func (i Iterator) Equal(it Iterator) bool

func (Iterator) Front

func (i Iterator) Front() Iterator

func (Iterator) InsertBack

func (i Iterator) InsertBack(value interface{}) (Iterator, bool)

func (Iterator) InsertFront

func (i Iterator) InsertFront(value interface{}) (Iterator, bool)

func (Iterator) IsEnd

func (i Iterator) IsEnd() bool

func (*Iterator) MoveBack

func (i *Iterator) MoveBack()

func (*Iterator) MoveFront

func (i *Iterator) MoveFront()

func (Iterator) Remove

func (i Iterator) Remove() (interface{}, bool)

func (Iterator) Set

func (i Iterator) Set(value interface{}) bool

func (Iterator) Valid

func (i Iterator) Valid() bool

func (Iterator) Value

func (i Iterator) Value() (interface{}, bool)

type List

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

func (*List) Back

func (l *List) Back() Iterator

func (*List) Front

func (l *List) Front() Iterator

func (*List) Init

func (l *List) Init() *List

func (*List) PopBack

func (l *List) PopBack() (interface{}, bool)

func (*List) PopFront

func (l *List) PopFront() (interface{}, bool)

func (*List) PushBack

func (l *List) PushBack(value interface{}) Iterator

func (*List) PushFront

func (l *List) PushFront(value interface{}) Iterator

func (*List) Size

func (l *List) Size() int

Jump to

Keyboard shortcuts

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