3 ms·
This is why it's always seemed to me that head ought to be typed as head :: [a] -> Maybe a
by pdpi 12y ago
This is why it's always seemed to me that head ought to be typed as
head :: [a] -> Maybe a
- NickPollard 12y agoScala's collections have this function as headOption, which I use almost exclusively over head.