Difference between revisions of "IndexesOf"

 
Line 1: Line 1:
 
[[Category:Functions that create lists]]
 
[[Category:Functions that create lists]]
 
[[Category:Data Type Functions]]
 
[[Category:Data Type Functions]]
[[Category:VarTerm Functions]]
+
[[Category:Functions that Manipulate var]]
  
Returns the indexes of array A as a list of varTerms.
+
Returns the indexes of array A as a list of VarTerms.
  
 
= Declaration =
 
= Declaration =
  
 
  IndexesOf( A : Array )
 
  IndexesOf( A : Array )
 +
 +
= Description =
 +
 +
IndexesOf(A) returns a list of varTerms, each one serving as a handle to the indexes of array A.
 +
 +
This is similar to IndexNames(A), except that IndexesOf returns actual varTerms, while IndexNames returns the index identifiers (as text strings).
 +
 +
It is possible for an array to have more than one local index having identical names. Obviously, this is not recommended, but in the unusual case where this occurs, the index handles returned by IndexesOf are unambiguous.
 +
 +
Retrieved from "http://lumina.com/wiki/index.php/VarTerm_Functions"
  
 
= Examples =
 
= Examples =

Revision as of 22:01, 31 January 2007


Returns the indexes of array A as a list of VarTerms.

Declaration

IndexesOf( A : Array )

Description

IndexesOf(A) returns a list of varTerms, each one serving as a handle to the indexes of array A.

This is similar to IndexNames(A), except that IndexesOf returns actual varTerms, while IndexNames returns the index identifiers (as text strings).

It is possible for an array to have more than one local index having identical names. Obviously, this is not recommended, but in the unusual case where this occurs, the index handles returned by IndexesOf are unambiguous.

Retrieved from "http://lumina.com/wiki/index.php/VarTerm_Functions"

Examples

IndexNames(Car_prices) --> [Car_types,Year]

See Also

Comments


You are not allowed to post comments.