setAttributes

 

 

Overview

The setAttributes function sets the attributes of the argument {vector} to the value of the specified object vector {objectVector}, and returns the updated Vector. When a Vector is attributed, it may be referenced by attribute (similar in many ways to a Structure). If the attributes are set to Void (objectVector = #void) then the Vector is returned unattributed.

Usage

The setAttributes function is used to set the attributes of a {vector} to the specified {objectVector}, allowing the Vector to be accessed via the attributes. Alternatively, the {vector} argument may be a block of Vectors (an ObjVector, a Structure, or a Dictionary of Vectors). In this case, the setAttributes function will set the attributes of all Vectors contained in the block.

 

Syntax


Expression:

(setAttributes vector objectVector)


Arguments Name Type Description
Argument:vectorVector A Vector
Argument:objectVectorObjVector An object vector containing new attributes or #void

Returns:

The attributed Vector.



 

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.

Integer Vector

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

++ += + /=
/ * -- -=
- addMethod addi appendWriteln
append apply avg badd
balance bdiv binaryInsert binaryNand
binaryNor binaryNot binaryNxor binarySearch
bitToNumberVector bitwiseAnd bitwiseNand bitwiseNor
bitwiseNot bitwiseNxor bitwiseOr bitwiseShiftLeft
bitwiseShiftRight bitwiseXor bmod bmul
boolean cadd cdiv cdr
char character cmod cmul
code compareEQ compareGE compareGT
compareLE compareLT compareNE compare
comparison cons copy count
csub day days360 debugDetective
deleteRows delete dimension display
divi evalInSyncLocalContext exit exportCsv
exportSbf exportTab fact fdisplay
fileClose fileCopy fileDisplay fileErase
fileOpen fileReadRecord fileRead fileResize
fileSeek fileWrite filewriteln findBlock
find floor fraction freeBlock
gcd getRecursionCount hashString hour
iadd icompareEQ icompareGE icompareGT
icompareLE icompareLT icompareNE idiv
imod importCsv importSbf importTab
imul insertRows insert inside
inspect integer isAtom isBitVector
isBoolean isBound isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isComplex isDate isDictionary isDirectory
isEqual isError isEven isFloatVector
isIdentical isInside isIntegerVector isInteger
isLambda isMatrix isMember isMoney
isNumberMatrix isNumberVector isNumber isObjectVector
isObject isPair isPcodeVector isString
isStructure isSymbol isText isType
isVector isub kurtosis lcm
left length list macroReplace
makeGramMatrix makeQuotedList map mapc
max median member mid
min minute mod modi
money month muli new
number objectToList objectToMatrix objectToNumMatrix
objectToNumVector objectToVector offset pair
parent parse pointer preAllocateFixedMemoryBlocks
product qt random randomize
range rank refAttributes refValues
ref remove replace rept
resize reverse right round
saveObject second setAttributes setBlock
setCar setCdr setLastCdr setq
sizeof skew sort sql
sqrt srandom stdev stdevp
stringToBVector stringToVector string subi
substitute substring sum sumsqr
svmRegression system text time
type uniqueInsert 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