pop!
Syntax
pop!(X)
Details
Remove the last element of X.
Parameters
X is a vector.
Returns
A scalar of the same type asX, indicating the removed element.
Examples
x = 1 2 3;
pop!(x);
// output: 3
x;
// output: [1,2]
Related functions: drop, removeHead!, removeTail!, remove!
