mirror of
https://github.com/Avi-D-coder/implicit-hie.git
synced 2024-11-23 02:06:17 +03:00
Merge pull request #19 from drupol/patch-1
This commit is contained in:
commit
536b425950
@ -50,6 +50,7 @@ fmtComponent (p, c) =
|
|||||||
<> "component: "
|
<> "component: "
|
||||||
<> dQuote c
|
<> dQuote c
|
||||||
|
|
||||||
|
-- | Same as init but handle empty list without throwing errors.
|
||||||
dropLast :: [a] -> [a]
|
dropLast :: [a] -> [a]
|
||||||
dropLast l = take (length l - 1) l
|
dropLast l = take (length l - 1) l
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user