Array.reverse()

From ZCubes Wiki
Revision as of 04:33, 27 April 2020 by Devika (talk | contribs) (Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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