RE: two-way hashes

2001-08-05 Thread Mitchell, Adam R
sounds like a good idea, but we can't limit multiple values, so it might be better if it returns an array. maybe the code should look more like this: @{value}hash = key or maybe @%{value}hash = key unless this clashes with something else -Original Message- From: raptor [mailto:[EMAIL

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