Handbook
Glossary
deque>sequence ( deque -- sequence )
Persistent deques
Prev:
pop-back ( deque -- item newdeque )
Vocabulary
persistent
.
deques
Inputs
deque
a
deque
Outputs
sequence
a
sequence
Word description
Given a deque, creates a sequence containing those elements, such that the front side of the deque is the beginning of the sequence.
Definition
USING:
kernel
sequences
;
IN:
persistent.deques
:
deque>sequence
( deque -- sequence )
[
dup
deque-empty?
not
]
[
pop-front
swap
]
produce
nip
;