Defines a constant binding in the current module and initializes it to a new table object. If the argument type is supplied, the new table created is an instance of that type. Therefore type must be <table> or a subclass thereof. If type is not supplied, the new table created is an instance of a concrete subclass of <table>.
define table $colors :: <object-table>
= { #"red" => $red,
#"green" => $green,
#"blue" => $blue };
define table (name) :: (type) = { (key) => (element), ... }| name | A variable name. |
| type | A class. Optional. Defaults to <table>. |
| key | An expression for the key of the element. |
| element | An expression for an element |