X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FList.hs;h=3e2bead03e480fa2cec95d1b93f4e24ac264240a;hb=f0d03cbf416d6c3beb984b313f0c7196ec32a929;hp=da580310814c90d348d8c714a1420def562de775;hpb=77ef739e7ae05a4842f258e66a04be8087c92ab8;p=ghc-base.git diff --git a/Data/List.hs b/Data/List.hs index da58031..3e2bead 100644 --- 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, --- 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 (==)