Skip to content

Instantly share code, notes, and snippets.

@akaneko3
Last active December 29, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akaneko3/7613772 to your computer and use it in GitHub Desktop.
Save akaneko3/7613772 to your computer and use it in GitHub Desktop.
リストの最初の n 個を 1 行ごとに表示する
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