public prev ( $t ) : Original | ||
$t | Element to fill hole with | |
return | Original | contents of new hole. |
public function prev($t)
{
if ($t !== NULL) {
array_push($this->back, $t);
}
return empty($this->front) ? NULL : array_pop($this->front);
}