Vocabulary
sequences.unrolled

Inputs
xseqa sequence
yseqa sequence
lenan integer
quota quotation with stack effect ( x y -- newx )


Outputs
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 )
reach unrolled-2map-as ; inline