cons()
Constructs a list cell from the member value to be returned by car() and the next element value to be returned by cdr() . The first argument can be any value, and the second argument is normally a list, or NULL. If the second argument is a list, then the value returned is a list with new member inserted at the beginning. If the second argument is NULL, then the value returned is a list with one member. If the second argument is neither a list nor NULL, then an improper list is returned. Returns a list cell; that is, returns a list with one element.
Syntax:
cons( carValue, cdrValue );
where
carValue is a member value.
cdrValue is the next element value.
Example:
x = cons( 5, NULL ); //the result is x=(5)
Also:
x = cons( 5, list(6,7) ); //the result is x=(5,6,7)
Where Used:
Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()