ailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 7:41 AM
To: [EMAIL PROTECTED]
Subject: two-way hashes
hi,
I tought about a posibility to access a HASH in way that the VALUES can also
be used like KEYS...i.e in perl6 I will say this :
%hash{key} = value;
I want to say also :
{value}hash%
> >I want to say also :
> >
> >{value}hash% = key;
> Just use two hashes for this purpose. If you can write a class that help
> keeping
> track of the two hashes, that will be more useful than inventing weird
> syntax.
]- this was not a proposed syntaxI was just joked about it ... sorry.
:"|
>I tought about a posibility to access a HASH in way that the VALUES can
also
>be used like KEYS...i.e in perl6 I will say this :
>
>%hash{key} = value;
>
>I want to say also :
>
>{value}hash% = key;
Please forget about it. It is just syntactic sugar for yourself. The hash
mapping
is m-to-1, th