ソースを参照

Echo and reverse

DricomDragon 5 年 前
コミット
fddc128534
1 ファイル変更7 行追加0 行削除
  1. 7 0
      io_rev.hs

+ 7 - 0
io_rev.hs

@@ -0,0 +1,7 @@
+-- Slide 55
+-- It makes more sense to compile this file
+
+import Data.List
+
+main::IO()
+main = getLine >>= putStrLn.(\x -> concat [x, " ", reverse x])