The type Option is a member of the class Type. Each object of class Option is called an option. Each option is also a member of class BasicList.
More general types (whose methods may also apply) :
Such pairs are used as optional arguments for functions. There is also a way to make new hash tables with new by providing a list of option pairs.
i1 : a => 5 |
i2 : peek (a => 5) |
i3 : new HashTable from {a => 5, b => 7} |
These pairs are implemented as lists, so that if z is x => y, then x is z#0 and y is z#1.
See also:
Functions and methods returning a an option :
Methods for using an option :