[Pixlib] Map feature request

Francis Bourre peterphonix at usa.net
Tue Jul 18 14:56:16 EDT 2006


Hello Cédric,

sorry but that's not the goal of a map implementation.

Maybe, to solve your problem you could build a class which use 2 maps in 
parallel as below.

function put( key : Object, value : Object ) : Void
{
    _keyAsKeyMap.put( key, value );
    _valueAsKeyMap.put( value, key );
}

francis

----- Original Message ----- 
From: "Cédric Néhémie" <cartel.com at free.fr>
To: <Pixlib at osflash.org>
Sent: Wednesday, July 12, 2006 9:05 PM
Subject: [Pixlib] Map feature request


Hi list,

I don't know if that feature have been request before.

In Map class the 'get' method return the value according to the key
passed to the function, is it possible to add a method that return the
associated key of a passed value (getKeyByValue or something like this),
without require the use of an iterator ?

Thanks to redirect me on the topic if that point have been allready
discussed.

Cédric



_______________________________________________
Pixlib mailing list
Pixlib at osflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org





More information about the Pixlib mailing list