setCdr

 

 

Overview

The setCdr function sets the cdr component of the Vector argument {vector} to the value of the expression {expr}, and returns the updated vector.

Structure

The setCdr function sets the cdr component of the Structure argument {struct} to the value of the expression {expr}, and returns the updated structure.

Dictionary

The setCdr function sets the cdr component of the Dictionary argument {dict} to the value of the expression {expr}, and returns the updated dictionary.

Directory

The setCdr function sets the cdr component of the Directory argument {dir} to the value of the expression {expr}, and returns the updated directory.

Brick

The setCdr function sets the cdr component of the Brick argument {brick} to the value of the expression {expr}, and returns the updated brick.

Matrix

The setCdr function sets the cdr component of the Matrix argument {matrix} to the value of the expression {expr}, and returns the updated matrix.

NumMatrix

The setCdr function sets the cdr component of the NumMatrix argument {nummatrix} to the value of the expression {expr}, and returns the updated nummatrix.

List

The setCdr function sets the cdr component of the argument {list} to the value of the expression {exp}, and returns the {list} .

Usage

The setCdr function is used to set a cdr (tail) of a Structure, Dictionary, Directory, Brick, Vector, Matrix, Pair or List.

 

Syntax


Expression:

(setCdr vector expr)


Arguments Name Type Description
Argument:vectorVector FltVector ShortVector IntVector NumVector ObjVector BitVector The Vector argument.
Argument:exprCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified Vector.




Expression:

(setCdr struct expr)


Arguments Name Type Description
Argument:structStructure The Structure argument.
Argument:exprCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified Structure.




Expression:

(setCdr dict expr)


Arguments Name Type Description
Argument:dictDictionary The Dictionary argument.
Argument:exprCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified Dictionary.




Expression:

(setCdr dir expr)


Arguments Name Type Description
Argument:dirDirectory The Directory argument.
Argument:exprCharacter String Symbol Vector BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified Directory.




Expression:

(setCdr brick expr)


Arguments Name Type Description
Argument:brickBrick The Brick argument.
Argument:exprCharacter String Symbol Vector Brick BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified Brick.




Expression:

(setCdr matrix expr)


Arguments Name Type Description
Argument:matrixMatrix The Matrix argument.
Argument:exprCharacter String Symbol Vector Brick BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified Brick.




Expression:

(setCdr nummatrix expr)


Arguments Name Type Description
Argument:nummatrixNumMatrix The NumMatrix argument.
Argument:exprCharacter String Symbol Vector Brick BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The modified brick.




Expression:

(setCdr list exp )

(setCdr pair exp )


Arguments Name Type Description
Argument:list or pairPair List The Pair or List to be modified
Argument:expCharacter String Symbol Vector Brick BitVector ByteVector IntVector FltVector ObjVector Structure Dictionary Directory Matrix NumMatrix Integer Float Number Complex A cdr expression

Returns:

The updated Pair or List.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Character String Symbol Brick
Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary
Directory List ShortVector Matrix
NumMatrix Integer Float Number
Complex

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ *= * --
-= - abs acos
add1 addMethod addi appendWriteln
append apply argument arithmetic
asin associate atan avg
badd balance bdiv binaryInsert
binaryNand binaryNor binaryNot binaryNxor
binarySearch bitToIntegerVector bitToNumberVector bitwiseAnd
bitwiseNand bitwiseNor bitwiseNot bitwiseNxor
bitwiseOr bitwiseShiftLeft bitwiseShiftRight bitwiseXor
bmod bmul boolean c::r
cadd car ccompareEQ ccompareGE
ccompareGT ccompareLE ccompareLT ccompareNE
cdiv cdr char character
class clean closeLog cmod
cmul code compareEQ compareGE
compareGT compareLE compareLT compareNE
compare comparison compile complex
compress conjugate cons copy
cos cosh count csub
date day days360 debugBrowsableProcs
debugDetective debugEval debug decode
defchild defclass define(macro) defineStructure
define defmacro defmethod deforphan
defriend defstruct defun deg
deleteRows delete dimension disassemble
display divi downcase encode
evalInSyncLocalContext eval exit exp
exportCsv exportSbf exportTab expt
fact fdisplay fieldsOf fileClose
fileCopy fileDir fileDisplay fileEraseDir
fileErase fileExists fileMakeDir fileOpen
fileReadAll fileReadRecord fileRead fileResize
fileSeek fileSizeOf fileWriteAll fileWrite
filewriteln findBlock find floor
fraction freeBlock gc gcd
getGlobalValue getRecursionCount getSymbolTable getTickCount
globalBinding hashString hour iadd
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE idiv imaginary
imod importCsv importSbf importTab
imul insertRows insert inside
inspect integer isAtom isBitVector
isBoolean isBound isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isClass isComplex isDate isDictionary
isDirectory isEqual isError isEven
isExact isFloatVector isIdentical isInexact
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNegative
isNull isNumberMatrix isNumberVector isNumber
isObjectVector isObject isOdd isPair
isPcodeVector isPositive isString isStructure
isSymbol isText isType isVector
isZero isub julian kurtosis
last lcm left length
lisp list loadModule loadObject
loadRepository loadWorkspace lock log10
log2 log logbase macroReplace
makeDictionary makeGaussianMatrix makeGramMatrix makeQuotedList
makeQuotedSymbol makeStructure map mapc
matrixGaussianEliminate matrixGaussianSubstitute max median
member methodsOf mid min
minute mod modi money
month morph muli nadd
ncompareEQ ncompareGE ncompareGT ncompareLE
ncompareLT ncompareNE ndiv new
nmod nmul now nsub
number objectToDictionary objectToDirectory objectToList
objectToMatrix objectToNumMatrix objectToNumVector objectToStructure
objectToVector offset openLog pair
parent parse pi pointer
preAllocateFixedMemoryBlocks product proplist proprecord
putprop qt quote rad
random randomize range rank
real refAttributes refValues ref
remProp remove rename replace
rept resize reverse right
round run saveImmediate saveModule
saveObject saveRepository saveWorkspace second
send setAttributes setBlock setCar
setCdr setLastCdr set setf
setq sigmoid sign sin
sinh sizeof skew sleep
sort sql sqrt srandom
stdev stdevp stringCiEQ stringCiGE
stringCiGT stringCiLE stringCiLT stringCiNE
stringFill stringToBVector stringToVector string
sub1 subi submit substitute
substringCiEQ substringCiGE substringCiGT substringCiLE
substringCiLT substringCiNE substringEQ substringFill
substringGE substringGT substringLE substringLT
substringNE substring sum sumsqr
super svmRegression symbolToTypeCode symbol
system tan tanh text
time trim type uncompress
uniqueInsert unlock upcase var
varp vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorDelete vectorExpInnerProduct vectorFill
vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct
vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct
vectorTanhInnerProduct writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE