Handbook
Glossary
push-back ( deque item -- newdeque )
Persistent deques
Prev:
push-front ( deque item -- newdeque )
Next:
pop-front ( 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 back side. This takes constant time.
Definition
USING:
kernel
persistent.deques.private
;
IN:
persistent.deques
:
push-back
( deque item -- newdeque )
swap
[
push
]
flipped
;