Example Directory ref 012
|
Notes and Hints 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. Here are additional examples using indices. (define aDir #{dir| Name: "Bill" SSN: "616 55 1209" Age: 45} )
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
aDir[0 0]
Returns:Age aDir[0 1]
Returns:45 aDir[1 0]
Returns:Name aDir[1 1]
Returns:Bill aDir[2 0]
Returns:SSN aDir[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.
Directory
Symbol
String
Integer
Analytic Information Server (AIS)AIS Component Systems
|