linklist

package
v0.0.0-...-0e61b49 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 4 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[A any] struct {
	// contains filtered or unexported fields
}

func Clone

func Clone[A any](xs List[A]) List[A]

func Make

func Make[A any](xs ...A) List[A]

func (List[A]) Append

func (list List[A]) Append(x A) List[A]

func (List[A]) ElemType

func (List[A]) ElemType(A)

func (List[A]) Iter

func (list List[A]) Iter() collection.Iterator[A]

func (List[A]) Kind

func (List[A]) Kind(ListKind)

func (List[A]) Len

func (list List[A]) Len() int

type ListKind

type ListKind types.Type

type ListNode

type ListNode[A any] struct {
	Value    A
	NextNode *ListNode[A]
}

Jump to

Keyboard shortcuts

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