Changes

375 bytes added ,  21:13, 13 September 2024
no edit summary
Line 3: Line 3:  
*[[ Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member Functions]]
 
*[[ Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member Functions]]
    +
See [[Array_Find_Related_Functions | Array Find Related Functions]]
   −
==Array.nth(SomeNth, SomeCount) ==
+
==Array.nth(SomeNth, SomeCount, IsBothSides) ==
   −
Get the nth element from the array. SomeCount (default as 1) of elements from the nth index is given. Result is an array.
+
Array.ends() is the same function, but returns elements from front and back, and uses the same parameters.
   −
If the first element is required, use the Array.firstelement() or Array.lastelement(). Note that Array.first(Count) and Array.last(Count) give array of numbers as result.
+
Get the nth element from the array. SomeCount (default as 1) of elements from the nth index is given. Result is an array. IsBothSides (false by default), if true, will give the result from beginning and the end of the array. These parameters can be given as an array to do combinatorial loops.
 +
 
 +
If the first element is required, use the Array.firstelement() or Array.lastelement().  
 +
 
 +
Note that Array.first(Count) and Array.last(Count) give array of numbers as result.
    
The following are the easier way to get the xth element from an array. If multidimensional array, it gives the xth row.
 
The following are the easier way to get the xth element from an array. If multidimensional array, it gives the xth row.
    
Array.first
 
Array.first
 +
 +
Array.last
    
Array.second
 
Array.second
2,824

edits