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 and outputs
xseqa sequence
yseqa sequence
lenan integer
quota quotation with stack effect ( x y -- newx )
newseqa 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


: unrolled-2map
( xseq yseq len quot: ( x y -- newx ) -- newseq )
4 npick unrolled-2map-as ; inline