array

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 Array

type Array[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
	Get(value E) (index I, err error)
	Set(value E, new E) (index I, err error)
	GetAt(index int) (E, error)
	SetAt(index I, value E) error
	Clear() error
	List() S
}

Array is a random access data structure with a fixed 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