3 ms·One could also do something like getContents >>= mapM_ print . drop 1 . scanl (+) 0 . map read . linesby dllthomas 13y agoOne could also do something like getContents >>= mapM_ print . drop 1 . scanl (+) 0 . map read . lines