arrlst

package
v0.0.0-...-1f982ba Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIdxOutOfBounds = errors.New("index out of bounds")
	ErrNotFound       = errors.New("value not found")
)

Functions

This section is empty.

Types

type Arrlst

type Arrlst struct {
	// contains filtered or unexported fields
}

func New

func New(cap int) Arrlst

func (*Arrlst) Append

func (a *Arrlst) Append(val interface{})

func (*Arrlst) Get

func (a *Arrlst) Get(idx int) (interface{}, error)

func (*Arrlst) InsertAt

func (a *Arrlst) InsertAt(val interface{}, idx int) error

func (*Arrlst) Prepend

func (a *Arrlst) Prepend(val interface{})

func (*Arrlst) Remove

func (a *Arrlst) Remove(val interface{}) (interface{}, error)

func (*Arrlst) RemoveAt

func (a *Arrlst) RemoveAt(idx int) (interface{}, error)

Jump to

Keyboard shortcuts

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