sidescroller-framework

LUA Table Library Extensions

SFramework expands upon some of the built-in LUA table library functionality. Here, you can find reference for these additions.

Contents

table

table.indexOf

Returns the index of the given value in the given table, or 0 if not found

Arguments

table.length

Returns the length of the given table. This will work for both arrays and keyed tables

Arguments

local myKeyedTable = {x = 1, y = 2} local tableLength = table.length(myKeyedTable) –should return 2 ```