in reply to Re^2: cross combinations
in thread cross combinations
What I don't understand about the Perl6 solution is the need to count how many elements will be returned.sub cross { my @r = []; @r = map {my $l = $_; map {[@$_, $l]} @r} @$_ for @_; @r; }
|
|---|