LuaState.newTable

Create a new table from an InputRange. If the element type of the range is Tuple!(T, U), then each element makes up a key-value pair, where T is the key and U is the value of the pair. For any other element type T, a table with sequential numeric keys is created (an array).

  1. LuaTable newTable()
  2. LuaTable newTable(uint narr, uint nrec)
  3. LuaTable newTable(Range range)
    class LuaState
    @trusted
    newTable
    (
    Range
    )
    (
    Range range
    )
    if (
    isInputRange!Range
    )

Parameters

range Range

InputRange of key-value pairs or elements

Return Value

Type: LuaTable

The new table

Meta