Handbook
Glossary
sequence-tail>list ( index seq -- list )
Lazy lists
ยป
Constructing lazy lists
Prev:
3lazy-list ( a b c -- lazy-cons )
Next:
>list ( object -- list )
Vocabulary
lists
.
lazy
Inputs
index
an integer 0 or greater
seq
a
sequence
Outputs
list
a list
Word description
Convert the sequence into a list, starting from
index
.
See also
>list
Definition
USING:
kernel
lists
math
sequences
;
IN:
lists.lazy
:
sequence-tail>list
( index seq -- list )
2dup
length
>=
[
2drop
nil
]
[
<sequence-cons>
]
if
;