Handbook
Glossary
unrolled-map-integers-as ( n quot: ( n -- value ) exemplar -- newseq )
Unrolled sequence iteration combinators
Prev:
unrolled-each-integer ( n quot: ( i -- ) -- )
Next:
unrolled-collect ( n quot: ( n -- value ) into -- )
Vocabulary
sequences
.
unrolled
Inputs
n
an
integer
quot
a
quotation
with stack effect
( n -- value )
exemplar
a
sequence
Outputs
newseq
a
sequence
Word description
Unrolled version of
map-integers-as
.
n
must be a compile-time constant.
Definition
USING:
kernel
sequences
;
IN:
sequences.unrolled
:
unrolled-map-integers-as
( n quot: ( n -- value ) exemplar -- newseq )
overd
[
[
unrolled-collect
]
keep
]
new-like
;
inline