Definition macro
Defines a constant binding in the current module and initializes it to a new table object.
define table name [ :: type ] = { [ key => element ]* }
<table>.
common-extensions
common-extensions
Defines a constant binding name in the current module, and initializes it to a new table object, filled in with the keys and elements specified.
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 };