
4 Oct
2008
4 Oct
'08
12:21 p.m.
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