Status of nubOrd (Proposal #2629)

Isaac Dupree isaacdupree at charter.net
Sat Oct 4 08:21:41 EDT 2008


Bart Massey wrote:
> 2) Stick (non-StopList) nubWith in Data.List.  Stick nubOrd
>    in Data.Set, implemented using nubWith.
> 
>    Advantages: Provides a highly efficient, fully lazy
>    nubOrd.  Provides nubWith.  Reasonable implementation.
> 
>    Disadvantages:  Sticking nubOrd in Data.Set is weird.
> 
>    My score: 4/5

indeed a weird location, but only an import-line needs to 
change if someone invents a super-duper nubOrd that's even 
faster but depends on more libraries.  Would it be better to 
stick it in a new module e.g. Data.Set.Nub?

-Isaac


More information about the Libraries mailing list