newLine :: [String] -> IO()
newLine list
| isEmpty list = putStrLn ("END")
| otherwise = putStrLn (head list) >> newLine (tail list)

isEmpty :: [a]->Bool
isEmpty [] = True
isEmpty list = False
Last modified: Saturday, 12 November 2011, 5:38 PM