Handbook
Glossary
2nested-map ( seq1 seq2 quot -- seq )
Vocabulary
sequences
.
extras
Inputs
seq1
a
sequence
seq2
a
sequence
quot
a
quotation
Outputs
seq
a
sequence
Word description
Applies quotation to all pairs of elements from
seq1
and
seq2
, yielding new elements which are collected into a new sequence having the same class as
seq1
. Order is the same as a nested for loop.
Definition
USING:
kernel
;
IN:
sequences.extras
:
2nested-map
( seq1 seq2 quot -- seq )
pick
2nested-map-as
;
inline