list

package
v0.0.0-...-2c762cd Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayList

type ArrayList[E comparable] []E

func ArrayListOf

func ArrayListOf[E comparable](elems []E) ArrayList[E]

func NewArrayList

func NewArrayList[E comparable](initialCapacity int) ArrayList[E]

func (*ArrayList[E]) Append

func (arrayP *ArrayList[E]) Append(elem E)

func (*ArrayList[E]) AppendAll

func (arrayP *ArrayList[E]) AppendAll(elemsToAppend ...E)

func (*ArrayList[E]) Contains

func (arrayP *ArrayList[E]) Contains(elem E) bool

func (*ArrayList[E]) Each

func (arrayP *ArrayList[E]) Each(f func(E))

func (*ArrayList[E]) Insert

func (arrayP *ArrayList[E]) Insert(index int, elem E)

func (*ArrayList[E]) InsertAll

func (arrayP *ArrayList[E]) InsertAll(index int, elemsToInsert ...E)

Jump to

Keyboard shortcuts

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