Re: %hash1 >>...<< %hash2

2005-06-14 Thread Larry Wall
On Tue, Jun 14, 2005 at 12:55:37PM -0700, Brent 'Dax' Royal-Gordon wrote: : David Formosa (aka ? the Platypus) <[EMAIL PROTECTED]> wrote: : > If you consider arrays to be hashes keyed by integers then @a >>..<< : > @b does the equiverlent of an inner join. I would suggest that if we : > are going

Re: %hash1 >>...<< %hash2

2005-06-14 Thread Brent 'Dax' Royal-Gordon
David Formosa (aka ? the Platypus) <[EMAIL PROTECTED]> wrote: > If you consider arrays to be hashes keyed by integers then @a >>..<< > @b does the equiverlent of an inner join. I would suggest that if we > are going to have outer join versions then we have something like this It does? I thought

Re: %hash1 >>...<< %hash2

2005-06-14 Thread David Formosa \(aka ? the Platypus\)
On Tue, 14 Jun 2005 07:19:09 -0700, Mark A. Biggar <[EMAIL PROTECTED]> wrote: > Luke Palmer wrote: >> On 14 Jun 2005 06:07:10 -, David Formosa (aka ? the Platypus) >> <[EMAIL PROTECTED]> wrote: >>>multi sub infix_circumfix_meta_operator:{'>>','<<'} (Hash %a,Hash %b,Code >>>$op) { >>>m

Re: %hash1 >>...<< %hash2

2005-06-14 Thread Mark A. Biggar
Luke Palmer wrote: On 14 Jun 2005 06:07:10 -, David Formosa (aka ? the Platypus) <[EMAIL PROTECTED]> wrote: multi sub infix_circumfix_meta_operator:{'>>','<<'} (Hash %a,Hash %b,Code $op) { my Hash %return; for intersection(keys %a,keys %b) -> $key { %return{$key} = $o

Re: %hash1 >>...<< %hash2

2005-06-14 Thread Luke Palmer
On 14 Jun 2005 06:07:10 -, David Formosa (aka ? the Platypus) <[EMAIL PROTECTED]> wrote: > multi sub infix_circumfix_meta_operator:{'>>','<<'} (Hash %a,Hash %b,Code > $op) { > my Hash %return; > for intersection(keys %a,keys %b) -> $key { > %return{$key} = $op($a{$key