RosettaCodeData/Task/Strip-comments-from-a-string/Haskell/strip-comments-from-a-string.hs
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

4 lines
90 B
Haskell

ms = ";#"
main = getContents >>=
mapM_ (putStrLn . takeWhile (`notElem` ms)) . lines