table

非推奨を表示

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.

概要

関数

関数

clear

void

パラメータ

table: table

戻り値

void

clone

パラメータ

戻り値

concat

パラメータ

sep: string
既定値: 1

戻り値

create

パラメータ

count: number
value: Variant

戻り値

find

Variant

パラメータ

haystack: table
needle: Variant
init: number

戻り値

Variant

foreach

void

パラメータ

戻り値

void

foreachi

void

パラメータ

戻り値

void

freeze

パラメータ

戻り値

getn

パラメータ

戻り値

insert

void

パラメータ

pos: number
value: Variant

戻り値

void

insert

void

パラメータ

value: Variant

戻り値

void

isfrozen

パラメータ

戻り値

maxn

パラメータ

戻り値

move

パラメータ

src: table
dst: table
既定値: src

戻り値

コードサンプル


pack

Variant

パラメータ

values...: Variant

戻り値

Variant

remove

Variant

パラメータ

pos: number

戻り値

Variant

sort

void

パラメータ

comp: function
既定値: nil

戻り値

void

unpack

パラメータ

list: table
既定値: 1
既定値: #list

戻り値