Explorar o código

Echo and reverse

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
fddc128534
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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])