Reverse, Reversed |
Syntax |
Reverse(V:LIST):NULL Reversed(L:LIST):NULL where V is a variable containing a list in the first case. |
Description |
Example |
L := [1,2,3,4]; Reverse(L); L; -- L has been modified [4, 3, 2, 1] ------------------------------- M := [1,2,3,4]; Reversed(M); -- the reversed list is returned [4, 3, 2, 1] ------------------------------- M; -- M has not been modified [1, 2, 3, 4] ------------------------------- |
See Also |