array

package
v0.0.0-...-f2efcc2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FAccess = lang.NewMethod("access", accessArray, "access will return the item at the specified index or throw a IndexError if the item at that index does not exist")
View Source
var FCreateArray = lang.NewMethod("create", createArray, "Create a new array slice of all the argumentss")
View Source
var FLen = lang.NewMethod("len", lenArray, "len returns the length of the slice on a non-zero based index (starting at 1)")
View Source
var FPop = lang.NewMethod("pop", popArray, "pop removes the last entry from a slice, directly modifies the slice")
View Source
var FShift = lang.NewMethod("shift", shiftArray, "shift removes the first element from a slice, directly modifies the slice")
View Source
var FSubslice = lang.NewMethod("subslice", subsliceArray, "subslice returns a slice consisting of the range of indexes provided")

Functions

func Init

func Init() *module.Module

Types

type Slice

type Slice struct {
	Items []lang.Type
}

Jump to

Keyboard shortcuts

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