Handbook
Glossary
unrolled-2map ( xseq yseq len quot: ( x y -- newx ) -- newseq )
Unrolled sequence iteration combinators
Prev:
unrolled-map-as ( seq len quot: ( x -- newx ) exemplar -- newseq )
Next:
unrolled-2map-as ( xseq yseq len quot: ( x y -- newx ) exemplar -- newseq )
Vocabulary
sequences
.
unrolled
Inputs
xseq
a
sequence
yseq
a
sequence
len
an
integer
quot
a
quotation
with stack effect
( x y -- newx )
Outputs
newseq
a
sequence
Word description
Unrolled version of
2map
that iterates over the first
len
elements of
xseq
and
yseq
.
len
must be a compile-time constant. If
seq
has fewer than
len
elements, raises an
unrolled-bounds-error
.
Definition
USING:
kernel
;
IN:
sequences.unrolled
:
unrolled-2map
( xseq yseq len quot: ( x y -- newx ) -- newseq )
reach
unrolled-2map-as
;
inline