[READ-ONLY] Mirror of https://github.com/shuuji3/normal-haskell-programming-book. Codes for『ふつうのHaskellプログラミング』http://www.loveruby.net/ja/stdhaskell/
0

Configure Feed

Select the types of activity you want to include in your feed.

create echo.hs and swapa.hs

+13
+5
echo.hs
··· 1 + import System.Environment 2 + 3 + main :: IO () 4 + main = do args <- getArgs 5 + putStrLn $ unwords
+8
swapa.hs
··· 1 + main :: IO () 2 + main = do cs <- getContents 3 + putStr $ concatMap translate cs 4 + 5 + translate :: Char -> String 6 + translate 'a' = ['A'] 7 + translate 'A' = ['a'] 8 + translate c = [c]