Re:Why the world needs Haskell
by Peaker on Wednesday July 10, 2013 @04:06AM
(#6018069)
Or replace head with a better function.
[ Parent
| on HN ]
See the fantastic errors module, which has safe versions of head, etc.
Or use pattern matching.