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

반환