Is there an open source immutable dictionary for C#, with fast 'With/Without' methods?
Posted
by
Strilanc
on Stack Overflow
See other posts from Stack Overflow
or by Strilanc
Published on 2012-09-12T21:36:17Z
Indexed on
2012/09/12
21:38 UTC
Read the original article
Hit count: 231
I'm looking for a proper C# immutable dictionary, with fast update methods (that create a partial copy of the dictionary with slight changes). I've implemented one myself, using zippers to update a red-black tree, but it's not particularly fast.
By 'immutable dictionary' I don't just mean readonly or const. I want something that has reasonably fast 'With' and 'Without', or equivalent, methods that return a thing with slight modifications without modifying the original.
An example from another language is map in Scala
© Stack Overflow or respective owner