Difference between revisions of "Array.backward()"

From ZCubes Wiki
Jump to navigation Jump to search
Line 5: Line 5:
  
 
==Array.backward(Function,StartValue)==
 
==Array.backward(Function,StartValue)==
Returns the backward value of the given array.
+
Returns the backward value of the given array.The first array element becomes the last, and the last array element becomes the first.But backward() will not change the original array value.
  
 
(1..10).backward()
 
(1..10).backward()

Revision as of 04:18, 27 April 2020


Array.backward(Function,StartValue)

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

(1..10).backward()

10 9 8 7 6 5 4 3 2 1


|3,2,1..10|.backward()

6 5 4 3 2 1

See Also

forward

mid