Difference between revisions of "Array.reverse()"

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...")
 
 
Line 13: Line 13:
  
 
a=|3,2,1..10|;a.reverse();a;
 
a=|3,2,1..10|;a.reverse();a;
{| class="wikitable"|-
+
{| class="wikitable"
 +
|-
 
| 5 || 6   
 
| 5 || 6   
 
|-
 
|-

Latest revision as of 03:01, 30 April 2020


Array.reverse(Function,StartValue)

Returns the reversed value of the given array.The first array element becomes the last, and the last array element becomes the first.But reverse() will change the original array value.

(1..10).reverse()

10 9 8 7 6 5 4 3 2 1


a=|3,2,1..10|;a.reverse();a;

5 6
3 4
1 2


See Also

backward

transpose