Handbook
Glossary
unrolled-2each ( xseq yseq len quot: ( x y -- ) -- )
Unrolled sequence iteration combinators
Prev:
unrolled-each-index ( seq len quot: ( x i -- ) -- )
Next:
unrolled-map ( seq len quot: ( x -- newx ) -- newseq )
Vocabulary
sequences
.
unrolled
Inputs
xseq
a
sequence
yseq
a
sequence
len
an
integer
quot
a
quotation
with stack effect
( x y -- )
Outputs
None
Word description
Unrolled version of
2each
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:
sequences.unrolled.private
;
IN:
sequences.unrolled
:
unrolled-2each
( xseq yseq len quot: ( x y -- ) -- )
unrolled-2bounds-check
unrolled-2each-unsafe
;
inline