Damian Conway wrote:
Looking at that code, I'm wondering how you pass a junction. Suppose I want to pass a junction to a subroutine instead of calling the sub with each value of the junction... how would I do that?BTW, in thinking about it further, I realize that Dan is going to have to tackle this issue anyway. There's fundamentally no difference in the exigencies of:$junction = $x | $y | $z; foo($junction); # Call foo($x), foo($y), and foo($z) # in parallel and collect the results # in a disjunction
m:att d:iephouse
and
$junction = &f | &g | &h;
$junction($x); # Call f($x), g($x), and h($x)
# in parallel and collect the results
# in a disjunction
Damian
