Browse Source

Echo and reverse

DricomDragon 5 năm trước cách đây
mục cha
commit
fddc128534
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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])