|
setq
|
The setq function alters the bindings of a Dictionary. There are two
syntax forms for changing a Dictionary binding. The first syntax form requires a
key argument {key} and a value argument {newValue} and results in
replacing the value at the specified key with {newValue}. The second syntax
form requires a single index. The index {index1} selects the index1-th
binding pair and results in replacing the value at the specified index1-th position.
The third syntax form requires two indices. The first index specifies the index1-th
binding in the Dictionary and the second index {index2} specifies which part
of the binding pair will be altered. If {index2} is equal to 0 the key will
be replaced, if {index2} is equal to 1, then the value will be replaced.
Use the setq function when you want to modify one of the bindings in a structure, dictionary or directory. You can modify either a key or a value of a binding.
Strong Typed:
Returns an updated Dictionary.
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. 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.
(setDicValue aDic index newValue)
Name
Description
AIS Types aDic The Dictionary to be modified. Dictionary index If the index is present and numeric, it will identify the integer index
position to modify. Integer newValue The new value to replace the old value. Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary Directory
Matrix NumMatrix Integer Float Number Complex
Returns:
Examples
Argument Types
How do I contact the AIS team?