pop!

Syntax

pop!(X)

Arguments

X is a vector.

Details

Remove the last element of X.

Examples

$ x = 1 2 3;
$ pop!(x);
3

$ x;
[1,2]