enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Module:CountryData - Wikipedia

    en.wikipedia.org/wiki/Module:CountryData

    Note: This is likely not quicker than wikicode-only alternatives such as {} and {}, because it transcludes the data template from Lua and converts it to a Lua table using the above function, picks the wanted parameter name, and returns it to wikicode, whereas other templates perform two simple non-Lua transclusions to get, in most cases, the ...

  3. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    A table is a sequence, optionally supplemented by named keys: digit["two"]="2". Several table functions like table.concat will only work with the numbered values and ignore named keys. The metatable offers a large, optional set of methods for altering table behavior. For example, you can define a table to be callable like a function.

  4. Wikipedia : Guide to Scribbling

    en.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling

    A name in Lua is either an access of a local variable or a table lookup. [3] math.floor is a table lookup (of the string "floor") in the (global) math table, for example. Table lookups are slower, at runtime, than local variable lookups. Table lookups in tables such as the args table with its "specialness" are a lot slower.

  5. Module:CountryData/sandbox - Wikipedia

    en.wikipedia.org/wiki/Module:CountryData/sandbox

    Note: This is likely not quicker than wikicode-only alternatives such as {} and {}, because it transcludes the data template from Lua and converts it to a Lua table using the above function, picks the wanted parameter name, and returns it to wikicode, whereas other templates perform two simple non-Lua transclusions to get, in most cases, the ...

  6. Module:CountryData/doc - Wikipedia

    en.wikipedia.org/wiki/Module:CountryData/doc

    Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate

  7. Lua (programming language) - Wikipedia

    en.wikipedia.org/wiki/Lua_(programming_language)

    Lua provides functions to push and pop most simple C data types (integers, floats, etc.) to and from the stack, and functions to manipulate tables through the stack. The Lua stack is somewhat different from a traditional stack; the stack can be indexed directly, for example. Negative indices indicate offsets from the top of the stack.

  8. Module:Dump - Wikipedia

    en.wikipedia.org/wiki/Module:Dump

    -- The iterator returns key, repr where key is the actual key, and-- repr is its representation: a number for the ipairs keys, or-- a string, including for number keys above the table length. if type (var) ~= 'table' then return function return nil end end local nums = {} local results = Collection. new for i, _ in ipairs (var) do nums [i ...

  9. Module:Set - Wikipedia

    en.wikipedia.org/wiki/Module:Set

    This module includes a number of set operations for Lua tables. It currently has union, intersection and complement functions for both key/value pairs and for values only. . It is a meta-module, meant to be called from other Lua modules, and should not be called directly from #invo