enow.com Web Search

Search results

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

    en.wikipedia.org/wiki/Module:TableTools

    Takes a table t and returns an array containing the numbers of keys with the optional prefix prefix and the optional suffix suffix. For example, for the table {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix 'a', affixNums will return {1, 3, 6}. All characters in prefix and suffix are interpreted literally.

  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. Lua (programming language) - Wikipedia

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

    a_table = {x = 10}-- Creates a new table, with one entry mapping "x" to the number 10. print (a_table ["x"])-- Prints the value associated with the string key, in this case 10. b_table = a_table b_table ["x"] = 20-- The value in the table has been changed to 20. print (b_table ["x"])-- Prints 20. print (a_table ["x"])-- Also prints 20, because ...

  5. Number sign - Wikipedia

    en.wikipedia.org/wiki/Number_sign

    In J, # is the Tally or Count function, [53] and similarly in Lua, # can be used as a shortcut to get the length of a table, or get the length of a string. Due to the ease of writing "#" over longer function names, this practice has become standard in the Lua community.

  6. Module:Random - Wikipedia

    en.wikipedia.org/wiki/Module:Random

    This Lua module is used on approximately 12,000 ... the array is shortened to that many elements after being ... do if type (k) == 'number' then table.insert (ret, k ...

  7. Row- and column-major order - Wikipedia

    en.wikipedia.org/wiki/Row-_and_column-major_order

    Note how the use of A[i][j] with multi-step indexing as in C, as opposed to a neutral notation like A(i,j) as in Fortran, almost inevitably implies row-major order for syntactic reasons, so to speak, because it can be rewritten as (A[i])[j], and the A[i] row part can even be assigned to an intermediate variable that is then indexed in a separate expression.

  8. Help:Basic table markup - Wikipedia

    en.wikipedia.org/wiki/Help:Basic_table_markup

    For table markup, it can be applied to whole tables, table captions, table rows, and individual cells. CSS specificity in relation to content should be considered since applying it to a row could affect all that row's cells and applying it to a table could affect all the table's cells and caption, where styles closer to the content can override ...

  9. Wikipedia:Comparable Lua functions to wikitext - Wikipedia

    en.wikipedia.org/wiki/Wikipedia:Comparable_Lua...

    Unlike in wikicode, Lua does not use functions like #ifexpr and #expr.Add the Lua operators and functions straight into your module. See mw:Help:Calculation for details on how #expr and mw. ext.