Array.backward()

From ZCubes Wiki
Revision as of 20:26, 19 May 2020 by Swapna (talk | contribs) (→‎Array.backward(Function,StartValue))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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


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

1 2
3 4
5 6

See Also

forward

mid