Skip to content

Instantly share code, notes, and snippets.

@suneo3476
Created April 22, 2014 02:46
Show Gist options
  • Save suneo3476/11163784 to your computer and use it in GitHub Desktop.
Save suneo3476/11163784 to your computer and use it in GitHub Desktop.
putStr impremented by putChar on Haskell.
putStr :: String -> IO () -まず型宣言-
putStr [] = return () -基底部-
putStr (x:xs) = do
putChar x -一文字表示-
putStr xs -残りを再帰的に表示-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment