PRELUDE: fix doc of tailInit

This commit is contained in:
hasufell 2014-12-14 18:01:42 +01:00
parent c940bfc534
commit 3d7f2c743a
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 1 additions and 1 deletions

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