list

package module
v0.0.0-...-a6433cc Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

README

list

Go Reference

This package implements a structurally-immutable singly linked list.

Documentation

Overview

Package list implements a structurally-immutable singly linked list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

func (*List[T]) Pop

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

func (*List[T]) Push

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

func (*List[T]) ReverseSlice

func (l *List[T]) ReverseSlice(dst []T) []T

func (*List[T]) Slice

func (l *List[T]) Slice(dst []T) []T

Jump to

Keyboard shortcuts

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