Handbook
Glossary
pop-front ( deque -- obj )
Factor handbook
»
The language
»
Collections
»
Deques
Prev:
push-all-back ( seq deque -- )
Next:
pop-back ( deque -- obj )
Vocabulary
deques
Inputs
deque
a
deque
Outputs
obj
an
object
Word description
Pop the object off the front of the deque and return the object.
Notes
This operation is O(1).
Definition
USING:
kernel
;
IN:
deques
:
pop-front
( deque -- obj )
[
peek-front
]
[
pop-front*
]
bi
;
inline