push-front* ( obj deque -- node )
Factor handbook » The language » Collections » Deques

Prev:deque-member? ( value deque -- ? )
Next:push-back* ( obj deque -- node )


Vocabulary
deques

Inputs
objan object
dequea deque


Outputs
nodea node


Generic word contract
Push the object onto the front of the deque and return the newly created node.

Notes
This operation is O(1).

Examples
USING: deques dlists kernel prettyprint ; 33 <hashed-dlist> push-front* node-value .
33


Definition

GENERIC: push-front* ( obj deque -- node )


Methods