Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For an overview, please see ASCII Tables.


Anchor
count
count

number count( table )

Returns the number of columns contained in the table.


Anchor
name

...

name

string name( table, number )

Returns the name of the column indexed by the second parameter (the first column is number 1). If the column has no name, nil is returned. If the column index is out of bounds, an error message is generated.

...


Anchor
metadata_keys
metadata_keys

list metadata_keys( table )

Returns a list of meta-data keys available for the given table. Only valid if meta-data rows are specified when reading the table. If there is no meta-data, then nil is returned.

...


Anchor
metadata_value
metadata_value

string or list metadata_value( table, string )
string or list metadata_value( table, list )

Returns the value corresponding to the meta-data key given as the second argument; if the given key is not valid for the table, nil is returned. If provided with a list of keys, a list of values will be returned; for those keys which are not valid for the table, nil values will appear in the return list. If the table contains no meta-data, nil is returned.

...


Anchor
read_table
read_table

table read_table( definition )

Reads the given table into memory. The easiest way to construct the input to this function is to use the Table Reader icon – see on page 69.


Anchor
values

...

values

vector or list values( table, number )
vector or list values( table, string )

...