|
ref
|
The ref function retrieves a value or a key from a Structure.
The ref command is used to retrieve a value from a Structure when the key is known or if the position in the Structure is known. The ref command will return either the key or the value at that position (see third syntax form).
(ref aStruct key) Strong Typed:
Returns a value bound with the key.
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.
(refStrValue aStruct index)
(refStrKey aStruct index)
Name
Description
AIS Types aStruct The Structure to be referenced. Structure key The key whose bound value is to be returned. If no such key is present in the
current binding set, a value of #void will be returned. The current key value
bindings are assumed NOT to exist in binary unique ascending sorted order. Symbol
Returns:
Examples
Argument Types
String
Symbol
Structure
Brick
Matrix
List
Void
Number
Date
Function
ObjectRepository
ShortVector
Dictionary
Directory
Vector
Text
Integer
Boolean
Character
Complex
Lambda
NumMatrix
How do I contact the AIS team?