reverse, reversed |
Syntax |
reverse(Ref 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(Ref 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 |