next

Syntax

next(X)

Arguments

X is a vector.

Details

Shift the elements of a vector to the left for one position. In comparison, prev shifts the elements of a vector to the right for one position; move shifts the elements of a vector for multiple positions.

Examples

$ x = 1..5;
$ x;
[1,2,3,4,5]

$ next(x);
[2,3,4,5,]