IonizeDocsionize.cc ↗

API Reference

Table Library

Standard Luau table library. All functions are available in any Ionize script.

13 members

table.clearClears all keys from the table, but leaves their capacity allocated so that future keys added to the table can re-use that storage, avoiding additional allocations.table.concatReturns a string of all the values of array list separated by sep.table.createCreates an array-like table with count values, initialized to value. When value is nil or omitted, the resulting table has length 0, but has preallocated storage for count elements.table.findReturns the numeric index of the first occurence of value, starting from init, or nil if value isn't present in the table. The default for init is 1.table.foreachApply the function f to the elements of the table passed.table.foreachiApply the function f to the elements of the table passed. This is similar to table.foreach() except that index-value pairs are passed, not key-value pairs.table.getnReturns the number of elements in the table passed.table.insertInserts element value at position pos in list.table.moveMoves elements from table a1 to table a2.table.packReturns a new table with all arguments stored into keys 1, 2, etc. and with a field "n" with the total number of arguments.table.removeRemoves from list the element at position pos, returning the value of the removed element.table.sortSorts list elements in a given order, *in-place*, from list[1] to list[#list].table.unpackReturns all elements from an array as results.