Handbook
Glossary
pop-front ( deque -- item newdeque )
Persistent deques
Prev:
push-back ( deque item -- newdeque )
Next:
pop-back ( deque -- item newdeque )
Vocabulary
persistent
.
deques
Inputs
deque
an
object
Outputs
item
an
object
newdeque
a
deque
Word description
Creates a new deque with the frontmost item removed. This takes amortized constant time with single-threaded access.
Definition
USING:
persistent.deques.private
;
IN:
persistent.deques
:
pop-front
( deque -- item newdeque )
pop
;