PRELUDE: fix doc of tailInit

This commit is contained in:
2014-12-14 18:01:42 +01:00
parent c940bfc534
commit 3d7f2c743a

View File

@@ -48,7 +48,7 @@ getLastX a xs
-- |Get a list with it's head and last element cut. If there are less
-- than 2 elements in the list, return an empty list.
-- than 3 elements in the list, return an empty list.
tailInit :: [a] -> [a]
tailInit xs
| length xs > 2 = tail . init $ xs