Ds\Sequence::pop
Removes and returns the last value
説明
abstract public mixed Ds\Sequence::pop()
戻り値
The removed last value.
エラー / 例外
UnderflowException if empty.
例
例1 Ds\Sequence::pop example
<?php
$sequence = new \Ds\Vector([1, 2, 3]);
var_dump($sequence->pop());
var_dump($sequence->pop());
var_dump($sequence->pop());
?>