• Reference Guide


Struct(flag Type name, flag Type name, ...)
Creates a data type of the structure category. The Type parameters specify the type of the elements. The name parameters specify their names. The name parameters must be identifiers. The flag can be either the keyword optional or left empty. If the optional keyword is used, the element declared is optional (that is, its value can be left unspecified).
def Book = Struct( String title,
optional String author,
optional Int year);

See Also