Difference between revisions of "IndexNames"

m (adding doc status category)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Functions that create lists]]
 
[[Category:Functions that create lists]]
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
 
[[Category:Functions returning information about arrays]]
 
[[Category:Functions returning information about arrays]]
  
Returns a list of the names of the indexes of the array A.
+
==IndexNames(A)==
 +
Returns a list of the [[identifier]]s, each as a text, of the indexes of the array «A». If «A» is a scalar, the list is of length zero.
  
 
[[Local Indexes|Local indexes]] (not in the global namespace) are prefixed with a dot.
 
[[Local Indexes|Local indexes]] (not in the global namespace) are prefixed with a dot.
  
= Declaration =
+
Declaration:
 
+
:[[IndexNames]](a: Array)
IndexNames( A : Array )
 
 
 
= Examples =
 
 
 
IndexNames(Car_prices) &rarr; ['Car_types','Year']
 
 
 
[[Index..Do|Index]] J:=1..2 do IndexNames(J^I) &rarr; ['I','.J']
 
  
= See Also =  
+
== Examples ==
 +
:<code>IndexNames(Car_prices) &rarr; ['Car_types', 'Year']</code>
 +
:<code>Index J := 1..2 do IndexNames(J^I) &rarr; ['I', '.J']</code>
  
 +
== See Also ==
 +
* [[Local Indexes]]
 
* [[IndexesOf]]
 
* [[IndexesOf]]

Latest revision as of 20:40, 4 August 2016


IndexNames(A)

Returns a list of the identifiers, each as a text, of the indexes of the array «A». If «A» is a scalar, the list is of length zero.

Local indexes (not in the global namespace) are prefixed with a dot.

Declaration:

IndexNames(a: Array)

Examples

IndexNames(Car_prices) → ['Car_types', 'Year']
Index J := 1..2 do IndexNames(J^I) → ['I', '.J']

See Also

Comments


You are not allowed to post comments.