Performance horrors

Aaron Denney wnoise at
Sat Aug 30 07:59:00 EDT 2008

On 2008-08-26, Bayley, Alistair <Alistair.Bayley at> wrote:
> The name is... well, pessimal might be a bit strong, but few programmers
> would think to look for something called "nub". Personally, when I first
> looked for it I expected uniq or unique (because that's what the unix
> utility that does the same thing is called). Distinct (from SQL) is
> another name that occurred to me, but never nub... it's not even a
> synonym for unique:

Right.  It helps a bit to remember it if you think of it as acting on
the list, rather than the elements -- it finds the heart of a list, as
removing duplicate points in an argument reduces it to its core.

Aaron Denney

More information about the Libraries mailing list