On Jan 1, 8:32Â pm, Paul Rubin <http://phr...@nospam.invalid> wrote: [snip...] > > Of course pythons list, dict, strings in my opinion just can't be beat, > > On many occasions I've wished for a functional dictionary > implementation in Python, like Haskell's Data.Map. Â One of these years > I'll get around to writing one.
Care to save me the effort of looking it up and tell me what Data.Map does that Python's dict doesn't? I guess if it is functional then every mutation must copy and return a new data structure? (Which will be much more efficient in Haskell than in Python - Haskell can share most of the underlying data whereas Python would have to create a new dict every time. At least it only stores references.) Michael Foord -- http://www.ironpythoninaction.com/ -- http://mail.python.org/mailman/listinfo/python-list