Handbook
Glossary
push-front ( obj deque -- )
Factor handbook
»
The language
»
Collections
»
Deques
Prev:
node-value ( node -- value )
Next:
push-all-front ( seq deque -- )
Vocabulary
deques
Inputs
obj
an
object
deque
a
deque
Outputs
None
Word description
Push the object onto the front of the deque.
Notes
This operation is O(1).
Definition
USING:
kernel
;
IN:
deques
:
push-front
( obj deque -- )
push-front*
drop
;
inline