You are viewing a single comment's thread. Return to all comments →
Doing a recursion might be tempting but we are doing functional programming so here is my solution.
printN = printer . read printer :: Int -> String printer a = concat . replicate a $ "Hello World\n" main = interact printN
Seems like cookies are disabled on this browser, please enable them to open this website
Hello World N Times
You are viewing a single comment's thread. Return to all comments →
Doing a recursion might be tempting but we are doing functional programming so here is my solution.