On Jan 10, 2006, at 2:32 PM, Michael Schall wrote:
Looks like a pretty slick way to achieve what you are looking for... I'm not sure how cross-browser it is... http://laurens.vd.oever.nl/weblog/items2005/setsinjavascript/
That is a really bad idea. Cross-browser, it only works for sets that contain objects that are uniquely identified by their "toString" result.. and if created temporarily as in the example, it *always* has worst case performance.
A good solution would simply be like an index or find command that works on iterables.
-bob