Without having checked, I think the F# map is immutable, while ISet is an interface for a mutable set.

By on 1/4/2010 8:07 AM ()

That is true, but System.Colllections.Generic.IDictionary is mutable, and FSharpMap is immutable (the map simply throws an exception from the mutator methods of IDictionary), so I was expecting a similar pattern to be followed for the set.

It just seems like it would be convenient to be able to pass an FSharpSet instance to some API that uses an ISet (for the query functionality, not the mutation).

By on 1/4/2010 8:32 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper