Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: A mini-language for sequences (part 1)

by itub (Priest)
on Nov 05, 2004 at 15:48 UTC ( #405630=note: print w/replies, xml ) Need Help??


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 11:08 UTC

    Can anyone say "Cartesian Product"?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://405630]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2019-09-17 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (218 votes). Check out past polls.

    Notices?