Lua Table Utils

Lua Table To String

Examples:

Remove duplicates from table

Randomly sample from List

Implode table into string with separator

ISSUE: Users should use built-in fn table.concat(table,divider)

Generate combinations from list

Generate combinations from list – Iterator version

Should be faster for large t and n as it updates only the items that change from combo to combo, instead of recreating the combo row each iteration.

Insert values from one table into another table

Details: http://lua-users.org/wiki/TableUtils

Leave a Reply