array

package
v0.0.0-...-9e67e2f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 2 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[T any] struct {
	// contains filtered or unexported fields
}

func CreateCopy

func CreateCopy[T any](toCopy *Array[T]) *Array[T]

func New

func New[T any](size int) *Array[T]

func (*Array[T]) At

func (arr *Array[T]) At(pos int) T

func (*Array[T]) Back

func (arr *Array[T]) Back() T

func (*Array[T]) Empty

func (arr *Array[T]) Empty() bool

func (*Array[T]) Fill

func (arr *Array[T]) Fill(val T)

func (*Array[T]) Front

func (arr *Array[T]) Front() T

func (*Array[T]) Set

func (arr *Array[T]) Set(pos int, val T)

func (*Array[T]) Size

func (arr *Array[T]) Size() int

func (*Array[T]) String

func (arr *Array[T]) String() string

func (*Array[T]) SwapArrays

func (arr *Array[T]) SwapArrays(toSwap *Array[T])

Jump to

Keyboard shortcuts

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