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

isEmpty :: [a]->Bool
isEmpty [] = True
isEmpty list = False
Последно модифициране: събота, 12 ноември 2011, 17:38