list

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Value interface{}
	// contains filtered or unexported fields
}

Element in list

type List

type List interface {
	Append(data interface{})
	Shift() interface{}
	UnShift(data interface{})
	Remove(prev, current *Element)
	Traverse(handler func(value interface{}) bool)
	Filter(filter func(value interface{}) bool)
	Size() int
	Clear()
}

func New

func New() List

New create a linked list

Jump to

Keyboard shortcuts

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