
table - definition of a table

Calling sequence:

table()
table(equation ...)
equation  --->  index = value

Parameter:
index   --  expression
value   --  expression

Summary:

table is used to define tables. The parameters of the function table consist
of equationsin which the left side is interpreted as the index of an entry and
the right side is interpreted as the relevant value. The table is initialized with
the entry of these equations. The index and value of an entry are subject to
no conditions.

In general an explicit definition of tables is not necessary, because an assignment
to an indexed identifier that cannot be evaluated as a listor array assigns
this identifier automatically a table. table is a kernel function.

>>  T := table(a = b, c = d): T[a];

     b

>>  T := table( (a,b) = 100,  a+b = 200): T[a,b]+T[a+b];

      300

See also:  array

