mirror of
https://github.com/Avi-D-coder/implicit-hie.git
synced 2024-11-26 11:25:24 +03:00
Add note about why custom function dropLast is used
This commit is contained in:
parent
9e9f8e7d77
commit
268a298b5b
@ -50,6 +50,7 @@ fmtComponent (p, c) =
|
||||
<> "component: "
|
||||
<> dQuote c
|
||||
|
||||
-- Same as init but handle empty list without throwing errors.
|
||||
dropLast :: [a] -> [a]
|
||||
dropLast l = take (length l - 1) l
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user