|
ref
|
The ref function retrieves the I-th element from the List
The ref function is used to access a single List element. Assuming there are n elements in a List, the elements of the List are accessed as elements 0 thru n-1. Also the special attributes of Value: and Pair: are supported. The Value index always returns the Pair itself. The Pair index always return true.
(ref list index) The list element at list[indexi].
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.
Name
Description
AIS Types list A list (collection of pairs). List index An integer index, or a symbol index. Integer
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?