2009/6/8 Ville Koskinen <vrk...@iki.fi>:
> Hello all,
>
> I was curious if this is possible in Perl 6:
>
> %hash{ 'foo' & 'bar' } = 'some value';
> # %hash{'foo'} eq 'some value' and %hash{'bar'} eq 'some value'

By autothreading, this would be equivalent to:

    (%hash{'foo'} & %hash{'bar'}) = 'some value';

which in turn is the same as:

   (%hash{'foo'} = 'some value') & (%hash{'bar'} = 'some value');

So yes, this is possible.

-- 
Jonathan "Dataweaver" Lang

Reply via email to