RE: two-way hashes

2001-08-05 Thread Mitchell, Adam R
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%

Re: two-way hashes

2001-08-03 Thread raptor
> >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. :"|

RE: two-way hashes

2001-08-02 Thread Hong Zhang
>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