PRELUDE: fix doc of tailInit
This commit is contained in:
parent
c940bfc534
commit
3d7f2c743a
@ -48,7 +48,7 @@ getLastX a xs
|
|||||||
|
|
||||||
|
|
||||||
-- |Get a list with it's head and last element cut. If there are less
|
-- |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 :: [a] -> [a]
|
||||||
tailInit xs
|
tailInit xs
|
||||||
| length xs > 2 = tail . init $ xs
|
| length xs > 2 = tail . init $ xs
|
||||||
|
Loading…
Reference in New Issue
Block a user