|
setLastCdr
|
The setLastCdr function sets the last cdr component of the argument {obj}
to the value of the expression {expr}, and returns the {obj} .
This has special meaning in the case of lists, when the function traverses to the end
of the list before setting the cdr. The argument {obj} may be a Pair, a Vector,
a Matrix, List or a Structure. When to use The setCdr and setLastCdr functions behave exactly the same when the obj
argument is a Vector or Matrix.
(setLastCdr obj expr ) The vector, list, pair, matrix or structure with the cdr set the the specified expression.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ObjVector_setLastCdr_009
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types obj The object to be modified. Vector Pair Structure Matrix List NumMatrix expr A cdr expression Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Pair List
Matrix NumMatrix Integer Float Number Complex
Returns:
Examples
Argument Types
Character
String
Symbol
Vector
BitVector
ByteVector
IntVector
Pair
FltVector
ObjVector
Structure
Dictionary
Directory
Pair
List
Matrix
NumMatrix
Integer
Float
Number
Complex
How do I contact the AIS team?