
31 Mar
2011
31 Mar
'11
2:37 p.m.
On Thu, Mar 31, 2011 at 6:18 PM, Mike Meyer
Shorter, but thing I've done that wasn't just an exercise from a haskell book.
The problem statement can be found at http://kernelbob.wordpress.com/2011/03/20/same-five-digits/.
My solution can be seen at http://pastebin.com/iW95q2ex.
Some quick comments: - Instead of '(== 0) . M.size', use 'M.null'. - Instead of 'putStrLn . show', use 'print'. - Why do you use M.map (head . show)? Why not stick with the numbers? Cheers, -- Felipe.