matt diephouse wrote:
>> $junction = $x | $y | $z;
>> foo($junction); # Call foo($x), foo($y), and foo($z)
>> # in parallel and collect the results
>> # in a disjunction
>
>
> 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?
Tell the sub that it's expecting an undistributed junction as its argument:
sub foo($param is junction) {...}
Damian
Thread Previous
|
Thread Next