29 Jun
2006
29 Jun
'06
10:10 p.m.
Robby Findler <robby@cs.uchicago.edu> writes:
Just out of curiosity, did you try "wc -l"?
import qualified Data.ByteString.Lazy.Char8 as L main = L.getContents >>= print . L.count '\n'
..or import Data.ByteString (hGetLines) main = hGetLines IO.stdin >>= print . List.length ? -k -- If I haven't seen further, it is by standing in the footprints of giants