xlist

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

func NewList

func NewList() *List

func (*List) Append

func (l *List) Append(items ...any) *List

func (*List) IsEmpty

func (l *List) IsEmpty() bool

func (*List) Iter

func (l *List) Iter(callback ListIterCallback)

func (*List) Length

func (l *List) Length() int

func (*List) Remove

func (l *List) Remove(n *Node)

func (*List) String

func (n *List) String() string

type ListIterCallback

type ListIterCallback func(idx int, node *Node) bool

type Node

type Node struct {
	Value any
	// contains filtered or unexported fields
}

func (*Node) Remove

func (n *Node) Remove()

func (*Node) String

func (n *Node) String() string

Jump to

Keyboard shortcuts

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