Difference between revisions of "Array.atindex()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
 
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
  
 
These functions operate on array locations and values to create contours and other interesting operations.
 
These functions operate on array locations and values to create contours and other interesting operations.
 +
 
[[Array Indices and XY Functions]]
 
[[Array Indices and XY Functions]]
  
 
==Array.atindex(List of indices) ==
 
==Array.atindex(List of indices) ==
 +
 +
Returns the indices indicated by the parameters. Basically gets the rows specified by the arguments.
  
 
MAGICSQUARE(5).atindex(1,3)
 
MAGICSQUARE(5).atindex(1,3)
  
{| class="wikitable"|-
+
{| class="wikitable"
 +
|-
 
| 20 || 8 || 21 || 14 || 2  
 
| 20 || 8 || 21 || 14 || 2  
 
|-
 
|-
Line 18: Line 22:
 
MAGICSQUARE(5).atindex(1,3,4)
 
MAGICSQUARE(5).atindex(1,3,4)
  
{| class="wikitable"|-
+
{| class="wikitable"
 +
|-
 
| 20 || 8 || 21 || 14 || 2  
 
| 20 || 8 || 21 || 14 || 2  
 
|-
 
|-

Latest revision as of 04:57, 8 May 2020

These functions operate on array locations and values to create contours and other interesting operations.

Array Indices and XY Functions

Array.atindex(List of indices)

Returns the indices indicated by the parameters. Basically gets the rows specified by the arguments.

MAGICSQUARE(5).atindex(1,3)

20 8 21 14 2
24 12 5 18 6

MAGICSQUARE(5).atindex(1,3,4)

20 8 21 14 2
24 12 5 18 6
11 4 17 10 23