Handbook
Glossary
pop-back ( deque -- item newdeque )
Persistent deques
Prev:
pop-front ( deque -- item newdeque )
Next:
deque>sequence ( deque -- sequence )
Vocabulary
persistent
.
deques
Inputs
deque
an
object
Outputs
item
an
object
newdeque
a
deque
Word description
Creates a new deque with the backmost item removed. This takes amortized constant time with single-threaded access.
Definition
USING:
persistent.deques.private
;
IN:
persistent.deques
:
pop-back
( deque -- item newdeque )
[
pop
]
flipped
;