removeTail!

Syntax

removeTail!(obj, n)

Arguments

obj is a vector.

n is a positive integer indicating the number of elements at the end of the vector to be removed.

Details

Delete the last n elements from a vector.

Examples

$ x=11..20;
$ x.removeTail!(3);
[11,12,13,14,15,16,17]