Example Dictionary ref 009
|
Notes and Hints (define Dict #{dic| Name: "Bill" SSN: "616 55 1209" Age: 45} ) When a single index is used, the value portion of the specified binding is
returned. However two indices offer the flexibility of referencing either the
key or value. (define Dict #{dic| Name: "Bill" SSN: "616 55 1209" Age: 45} )
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Dict.Age or Dict[0]
Returns:45 Dict.Name or Dict[1]
Returns:Bill Dict.SSN or Dict[2]
Returns:616 55 1209
Dict[0 0]
Returns:Age Dict[0 1]
Returns:45 Dict[1 0]
Returns:Name Dict[1 1]
Returns:Bill Dict[2 0]
Returns:SSN Dict[2 1]
Returns:616 55 1209
Here are examples of the ref function at work.
Here is the link to the current function used in this example.
Here are a number of links to other related functions.
setq(#void) | ref(#void) | fieldsOf(#void) | refValues(#void) |
Here are the links to the data types of the arguments used in this example. Here are a number of links to examples having similar argument types.
Dictionary
Symbol
Integer
Text
Analytic Information Server (AIS)AIS Component Systems
|