http://www.perlmonks.org?node_id=405630


in reply to A mini-language for sequences (part 1)

I feel an almost irresistible urge to overload the x operator to the seq_prod2 function:

use overload x => 'seq_prod2'; $s1 = seq(1,2,3); $s2 = seq(qw(a b c)); $p = $s1 x $s2; # same as seq_prod2($s1, $s2);

Replies are listed 'Best First'.
Re^2: A mini-language for sequences (part 1)
by dimar (Curate) on Nov 07, 2004 at 16:08 UTC

    Can anyone say "Cartesian Product"?