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. Usage The setCdr and setLastCdr functions behave exactly the same when the obj
argument is a Vector or Matrix. The setLastCdr function always adds a new cdr to a List or Pair. Unlike the
setCdr function which replaces the the existing cdr with the expression.List
(setLastCdr obj expr ) The vector, list, pair, matrix or structure with the cdr set the the specified expression.
Expression:
Arguments
Name
Type
Description Argument: obj Vector Pair Structure Matrix List NumMatrix
The object to be modified. Argument: expr Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Pair List
Matrix NumMatrix Integer Float Number Complex
A cdr expression
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Character | String | Symbol | Vector |
BitVector | ByteVector | IntVector | Pair |
FltVector | ObjVector | Structure | Dictionary |
Directory | Pair | List | Matrix |
NumMatrix | Integer | Float | Number |
Complex |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|