Last active
December 29, 2015 04:19
-
-
Save akaneko3/7613772 to your computer and use it in GitHub Desktop.
リストの最初の n 個を 1 行ごとに表示する
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
module TakePrintLn ( | |
takePrintLn | |
) where | |
takePrintLn :: Int -> [String] -> IO () | |
takePrintLn n = putStrLn . unlines . take n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment