Subject: [xsl] De-Duplification revisited (Was: Re: [xsl] What is a better word for "de-duplication"?) From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Thu, 12 Oct 2006 16:07:49 -0700 |
Reflecting on the recent discussion on finding a better word for "de-duplication" and in particular for "de-duplicated", here is what name is used in Haskell:
nub :: (Eq a) => [a] -> [a] nub = nubBy (==)
nubBy :: (a -> a -> Bool) -> [a] -> [a] nubBy eq [] = [] nubBy eq (x:xs) = x : nubBy eq (filter (\y -> not (eq x y)) xs)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Challenges with unparsed-, Colin Paul Adams | Thread | Re: [xsl] De-Duplification revisite, Abel Braaksma |
[xsl] Challenges with unparsed-text, Abel Braaksma | Date | Re: [xsl] De-Duplification revisite, Abel Braaksma |
Month |