HH\Vector::pop

Remove the last element of the current Vector and return it

public function pop(): Tv;

This function throws an exception if the current Vector is empty.

The current Vector will have n - 1 elements after this operation, where n is the number of elements in the current Vector prior to the call to pop().

Return Values

  • Tv - The value of the last element.