Created
April 22, 2014 02:46
-
-
Save suneo3476/11163784 to your computer and use it in GitHub Desktop.
putStr impremented by putChar on Haskell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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