table

Show Deprecated

This library provides generic functions for table/array manipulation, providing all its functions inside the global table variable. Most functions in the table library assume that the table represents an array or a list. For these functions, the "length" of a table means the result of the length operator.

Summary

Functions

Functions

clear

void

Parameters

table: table

Returns

void

clone

Parameters

Returns

concat

Parameters

sep: string
Default Value: 1

Returns

create

Parameters

count: number
value: Variant

Returns

find

Variant

Parameters

haystack: table
needle: Variant
init: number

Returns

Variant

freeze

Parameters

Returns

insert

void

Parameters

pos: number
value: Variant

Returns

void

insert

void

Parameters

value: Variant

Returns

void

isfrozen

Parameters

Returns

maxn

Parameters

Returns

move

Parameters

src: table
dst: table
Default Value: src

Returns

pack

Variant

Parameters

values...: Variant

Returns

Variant

remove

Variant

Parameters

pos: number

Returns

Variant

sort

void

Parameters

comp: function
Default Value: nil

Returns

void

unpack

Parameters

list: table
Default Value: 1
Default Value: #list

Returns