Re: Map, Set

2005-06-03 Thread Jean-Philippe Bernardy
We've been discussing these issues last year on the libraries list, and we reached the concensus that no concensus could be reached ( :) ) on the ultimate class-based collection framewor (tm). Hence we choose to go for concrete implementation of Set and Map types. Please refer to the libraries list

Re: Map, Set libraries

2005-06-02 Thread Christian Maeder
Serge D. Mechveliani wrote: > As Jens Fisseler notes, I have made a confusion about > > Set.elems, Set.toList, Set.setToList. There is even Set.toAscList (although one may argue that should be Set.toDistinctAscList) I think the right choice is Set.toList (replacing setToList) Is Set.elems just

Re: Map, Set libraries

2005-06-02 Thread Serge D. Mechveliani
As Jens Fisseler notes, I have made a confusion about Set.elems, Set.toList, Set.setToList. Docs on setToList occurs all right (`Obsolete' item). And for some reason, Data.Set.html shows the pair > > " > > elems :: Set a -> [a] > > O(n). The elements of a set. > > > > toList :: Set a

Re: Map, Set libraries

2005-06-02 Thread Jens Fisseler
> I meant the description in the ghc-6.4 documentation. > Data.Set.html says > " > elems :: Set a -> [a] > O(n). The elements of a set. > > setToList :: Set a -> [a] > O(n). Convert the set to a list elements. > " > What is the difference? > If they are really equivalent, then, it is nat