Handbook
Glossary
parallel-cartesian-map ( seq1 seq2 quot: ( elt1 elt2 -- newelt ) -- newseq )
Concurrent combinators
Prev:
parallel-product-map ( seq quot: ( elt -- newelt ) -- newseq )
Next:
parallel-cleave ( quots -- quot )
Vocabulary
concurrency
.
combinators
Inputs
seq1
an
object
seq2
an
object
quot
a
quotation
with stack effect
( elt1 elt2 -- newelt )
Outputs
newseq
an
object
Definition
USING:
arrays
kernel
sequences.private
;
IN:
concurrency.combinators
:
parallel-cartesian-map
( seq1 seq2 quot: ( elt1 elt2 -- newelt ) -- newseq )
[
2array
]
dip
[
first2-unsafe
]
prepose
parallel-product-map
;