arraylist

package
v0.0.0-...-24ca9bf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 1 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[I constraints.Integer, E any, S ~[]E] interface {
	Insert(value E) error
	InsertAt(index I, value E) error
	Remove(value E) error
	RemoveAt(index I) error
	GetAt(index int) (E, error)
	Get(value E) (index I, err error)
	Set(value E, new E) (index I, err error)
	SetAt(index I, value E) error
	Clear() error
	ToArray() (S, error)
}

ArrayList is a random access data structure with a variable size. * Access O(1) Search O(n) Insert O(n) Delete O(n)

Jump to

Keyboard shortcuts

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