list

package
v0.0.0-...-f5948c0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 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[T any] struct {
	Head, Tail *Node[T]
	Size       uint
}

func New

func New[T any]() List[T]

func (*List[T]) First

func (l *List[T]) First() T

func (*List[T]) Len

func (l *List[T]) Len() uint

func (*List[T]) Pop

func (l *List[T]) Pop() T

func (*List[T]) Push

func (l *List[T]) Push(v T)

type Node

type Node[T any] struct {
	Data T
	Next *Node[T]
}

Jump to

Keyboard shortcuts

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