|
ref
|
The ref function retrieves a value or a key from a Dictionary.
The ref command is used to retrieve a value from a Dictionary when the key is known or if the position in the Dictionary is known. If two indices are used, the ref command will return either the key or the value at that location.
(ref dict 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 dict index)
(refStrKey dict index)
Name
Description
AIS Types dict The Dictionary to be referenced. Dictionary 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?