Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by itub (Priest)
on Nov 05, 2004 at 20: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 16: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 meditating upon the Monastery: (9)
As of 2020-09-22 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (129 votes). Check out past polls.

    Notices?