Handbook
Glossary
push-front ( deque item -- newdeque )
Persistent deques
Prev:
deque-empty? ( deque -- ? )
Next:
push-back ( deque item -- newdeque )
Vocabulary
persistent
.
deques
Inputs
deque
a
deque
item
an
object
Outputs
newdeque
a
deque
Word description
Creates a new deque with the given object pushed onto the front side. This takes constant time.
Definition
USING:
kernel
persistent.deques.private
;
IN:
persistent.deques
:
push-front
( deque item -- newdeque )
swap
push
;