x(index1, index2, ..., indexN ) is a subarray of the array x
Each index corresponds to one dimension of the x array, called the ID in this section (the two exceptions are noted below). The index1 varies fastest, index2 next fastest, and so on. By default, Yorick indices are 1-origin. An indexI may specify multiple index values, in which case the result array will have one or more dimensions which correspond to the ID of x. Possibilities for the indexI are:
Function results and expressions may be indexed directly, e.g.:
f(a,b,c)(index1,index2) or (2*x+1)(index1,index2,index3)
If the left hand operand of the = operator is an indexed array, the right hand side is converted to the type of the left, and the specified array elements are replaced. Do not confuse this with the redefinition operation var =:
x(index1, index2, ..., indexN )= expr assign to a subarray of x