6cd70f4bd9
Drop-in substitute for Py2.7's new collections.OrderedDict. The recipe has big-oh performance that matches regular dictionaries (amortized O(1) insertion/deletion/lookup and O(n) iteration/repr/copy/equality_testing).
3 lines
219 B
Text
3 lines
219 B
Text
Drop-in substitute for Py2.7's new collections.OrderedDict. The recipe has
|
|
big-oh performance that matches regular dictionaries (amortized O(1)
|
|
insertion/deletion/lookup and O(n) iteration/repr/copy/equality_testing).
|