|
LifeLua 21-08-2025
Documentation for LifeLua, a Lua interpreter for the PS Vita
|
Extra table functions (extends Lua's table library) More...
These are added to Lua's standard table library and work on lists (tables with keys 1, 2, 3, ...). Note that the value comes first and the list second.
Functions | |
| boolean | table.find (any value, table list) |
| any | table.removefirst (any value, table list) |
| boolean table.find | ( | any | value, |
| table | list ) |
Checks if a value is in a list
| value | The value to look for |
| list | The list to search |
true if the value is in the list | any table.removefirst | ( | any | value, |
| table | list ) |
Removes the first time a value appears in a list (the items after it move down by one)
| value | The value to remove |
| list | The list to remove it from |