container

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 0 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[V any] struct {
	// contains filtered or unexported fields
}

func (*List[V]) Append

func (l *List[V]) Append(value V) *List[V]

Append adds an item at the end of the list, and set its value to `value`.

func (*List[V]) AtFirst

func (l *List[V]) AtFirst() bool

func (*List[V]) AtLast

func (l *List[V]) AtLast() bool

func (*List[V]) Backward

func (l *List[V]) Backward() bool

func (*List[V]) Forward

func (l *List[V]) Forward() bool

func (*List[V]) Get

func (l *List[V]) Get() (int, V)

func (*List[V]) GoFirst

func (l *List[V]) GoFirst() bool

func (*List[V]) GoLast

func (l *List[V]) GoLast() bool

func (*List[V]) Len

func (l *List[V]) Len() int

Len returns the number of items in this list.

Jump to

Keyboard shortcuts

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