Ds\Deque::isEmpty
Returns whether the deque is empty
説明
public bool Ds\Deque::isEmpty()
戻り値
Returns true
if the deque is empty, false
otherwise.
例
例1 Ds\Deque::isEmpty example
<?php
$a = new \Ds\Deque([1, 2, 3]);
$b = new \Ds\Deque();
var_dump($a->isEmpty());
var_dump($b->isEmpty());
?>