list

package
v0.0.0-...-8a46e9b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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 Double

type Double[T any] struct {
	// contains filtered or unexported fields
}

Double provides a doubly linked list.

func NewDouble

func NewDouble[T any]() *Double[T]

func (*Double[T]) Append

func (dl *Double[T]) Append(val T) DoubleID[T]

func (*Double[T]) Forward

func (dl *Double[T]) Forward() iter.Seq[T]

func (*Double[T]) Head

func (dl *Double[T]) Head() T

func (*Double[T]) Len

func (dl *Double[T]) Len() int

func (*Double[T]) Prepend

func (dl *Double[T]) Prepend(val T) DoubleID[T]

func (*Double[T]) Remove

func (dl *Double[T]) Remove(val T, cmp func(a, b T) bool)

func (*Double[T]) RemoveItem

func (dl *Double[T]) RemoveItem(id DoubleID[T])

func (*Double[T]) RemoveReverse

func (dl *Double[T]) RemoveReverse(val T, cmp func(a, b T) bool)

func (*Double[T]) Reset

func (dl *Double[T]) Reset()

func (*Double[T]) Reverse

func (dl *Double[T]) Reverse() iter.Seq[T]

func (*Double[T]) Tail

func (dl *Double[T]) Tail() T

type DoubleID

type DoubleID[T any] *doubleItem[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳