|
|
| No such thing as a small change | |
| PerlMonks |
Re^2: Golf: Length of longest line in a fileby mellon85 (Monk) |
| on Jul 04, 2010 at 08:15 UTC ( #847962=note: print w/ replies, xml ) | Need Help?? |
|
well, you could have used liftM and merge map length in the fold function liftM (foldl (\x y -> max x $ length y) 0 . lines) $hGetContents stdin oh.. wait.. what is this?
In Section
Meditations
|
|
||||||||||||||||||||