
30 Aug
2008
30 Aug
'08
11:38 a.m.
The current type is easier to use in general.
And it was also what I needed back in the days when I added the
function to the LML libraries.
-- Lennart
On Tue, Aug 26, 2008 at 8:45 PM, Jim Apple
Why isn't the type of group
Eq a => [a] -> [(a,[a])]
That matches more exactly what group does, and it's easy to see that functions like
nubOrd = map fst . group . sort
are clearly safe, whereas
map head . group . sort
is not.
Jim _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries