|
Example Dictionary cdr 003
|
Description
This example shows that the tail key-binding value of a Dictionary
must first be defined before it can be accessed by the cdr
function. If no tail value is defined, then the cdr function
returns #void.
Details
(define ClassRec #{dic|Bldg: 200 Room: 34 Period: 1 } )
|
Returns: #<Dictionary 188141>
|
The tail value of the ClassRec Dictionary is defined.
(setCdr ClassRec #{dic| Teacher: "Smith" Subject: "Math" })
|
Returns: none
|
(display ClassRec)
|
Returns: (#{dic| Bldg: 200 Room: 34 Period: 1 } . #{dic| Teacher: "Smith" Subject: "Math" })
|
Displays only the tail value of the ClassRec Dictionary.
(display (cdr ClassRec)) |
Returns: #{dic| Teacher: "Smith" Subject: "Math" }
|
Related Examples
Here are examples of the cdr function at work.
Function Links
Here is the link to the current function used in this example.
cdr
Here are a number of links to other related functions.
Argument Types
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.
|
Analytic Information Server (AIS)
AIS Component Systems
- Smartbase Engine
- QT C++ Libraries
- MySQL Relational Database
- AIS Lisp Libraries
- Rapid Analytic Demo IDE
|