Handbook
Glossary
deque-empty? ( deque -- ? )
Persistent deques
Prev:
sequence>deque ( sequence -- deque )
Next:
push-front ( deque item -- newdeque )
Vocabulary
persistent
.
deques
Inputs
deque
a
deque
Outputs
?
t/f
Word description
Returns true if the deque is empty. This takes constant time.
Definition
USING:
accessors
combinators.short-circuit
lists
;
IN:
persistent.deques
:
deque-empty?
( deque -- ? )
{
[
front>>
nil?
]
[
back>>
nil?
]
}
1&&
;