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

Map, Set libraries

2005-06-02 Thread Serge D. Mechveliani
Thanks to people for the explanations. To my question >> 1. elems :: Set a -> [a] >> setToList :: Set a -> [a] >> >> These two look like synonyms, but have different comments. >> Am I missing something? Jens Fisseler <[EMAIL PROTECTED]> writes on 2 Jun 2005 > Both functions compu