Skip to content
Snippets Groups Projects
Commit d134d1de authored by Owen Shepherd's avatar Owen Shepherd :guitar: Committed by Marge Bot
Browse files

docs(NonEmpty/group): Use list [] notation in group haddock

parent 495265b9
No related branches found
No related tags found
No related merge requests found
......@@ -401,8 +401,7 @@ partition p = List.partition p . toList
-- contains only equal elements. For example, in list notation:
--
-- >>> group "Mississippi"
-- "M" : "i" : "ss" : "i" : "ss" : "i" : "pp" : "i" : []
>>>>>>> 5864ddbab5 (docs(NonEmpty/group): Use repl haddock syntax in group docs)
-- ["M", "i", "ss", "i", "ss", "i", "pp", "i"]
group :: (Foldable f, Eq a) => f a -> [NonEmpty a]
group = groupBy (==)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment