projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-07-08 15:46:40 by panne]
[ghc-base.git]
/
Data
/
List.hs
diff --git
a/Data/List.hs
b/Data/List.hs
index
da58031
..
3e2bead
100644
(file)
--- a/
Data/List.hs
+++ b/
Data/List.hs
@@
-520,7
+520,7
@@
deleteFirstsBy eq = foldl (flip (deleteBy eq))
-- | The 'group' function takes a list and returns a list of lists such
-- that the concatenation of the result is equal to the argument. Moreover,
-- each sublist in the result contains only equal elements. For example,
-- | The 'group' function takes a list and returns a list of lists such
-- that the concatenation of the result is equal to the argument. Moreover,
-- each sublist in the result contains only equal elements. For example,
--- when applied to the string `Mississippi', the result is @["M","i","ss","i","ss","i","pp","i"]@.
+-- when applied to the string \"Mississippi\", the result is @[\"M\",\"i\",\"ss\",\"i\",\"ss\",\"i\",\"pp\",\"i\"]@.
group :: (Eq a) => [a] -> [[a]]
group = groupBy (==)
group :: (Eq a) => [a] -> [[a]]
group = groupBy (==)