Module:Common/doc

Common general purpose functions, for use in other modules so they don't have to be defined within each module.

Usage
Use  to import this module into another module, for example:

tableSelectValues
Loops through each of the child table "elements" within the indexed/sequential array, selecting the value of the   within that table, and adding it to a table to be returned. A value at the  should be present in each child table, and if it does not contain a value with the key, or if the child table is nil, a nil value is substituted (i.e. no checking is done).

Note that this will not work with associative (non-indexed) tables, since the output results are expected to be in numerical order.

This is a very rough equivalent of projection in C#'s LINQ (and others), where the desired values in each of the elements in an array are "projected" onto a new collection containing only those values.

TODO: Continue common documentation to same standard as above