list

package
v0.0.0-...-09c6c35 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[T any, O any](in []T, f func(T) O) []O

Types

type List

type List[T comparable] []T

func New

func New[T comparable](len int) List[T]

func (List[T]) Add

func (l List[T]) Add(i int, v T) []T

func (List[T]) Find

func (l List[T]) Find(v T) int

func (List[T]) RemoveAt

func (l List[T]) RemoveAt(i int) (T, []T)

Jump to

Keyboard shortcuts

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