Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by itub (Priest)
on Nov 05, 2004 at 20:48 UTC ( [id://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 16:08 UTC

    Can anyone say "Cartesian Product"?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-28 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found