Commit bf7ad38e authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix "init" docs: the input list need not be finite. Fixes trac #3465

parent 92c79859
......@@ -89,7 +89,7 @@ last (x:xs) = last' x xs
-- | Return all the elements of a list except the last one.
-- The list must be finite and non-empty.
-- The list must be non-empty.
init :: [a] -> [a]
init [x] = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment