A custom Map-like datastructure where multiple maps can be linked in O(1) time and can be treated as a single unit.
When looking up keys in a ChainMap the individual maps are searched in succession.
Useful when you need to quickly create multiple contexts without the O(n) overhead of using merge.
Caveat - The current implementation is not performant.
chainmap
A custom Map-like datastructure where multiple maps can be linked in O(1) time and can be treated as a single unit. When looking up keys in a ChainMap the individual maps are searched in succession.
Useful when you need to quickly create multiple contexts without the O(n) overhead of using
merge.Caveat - The current implementation is not performant.
Usage
Acknowledgements
Based on the ChainMap class from Python collections library.
License
Copyright (C) 2011 Baishampayan Ghose
Distributed under the Eclipse Public License, the same as Clojure.