Next: WeakSet, Previous: WeakKeyDictionary, Up: Base classes [Index]
I am similar to a plain identity dictionary, but my keys are stored in a weak array; I track which of them are garbage collected and, as soon as I encounter one of them, I swiftly remove all the associations for the garbage collected keys