
3 Jan
2006
3 Jan
'06
12:37 p.m.
Daniel Carrera wrote:
print_list xs = do putStr(join xs) where join [] = "" join (x:xs) = (show x) ++ "\n" ++ join xs
print_list xs = mapM putStrLn xs
Question: What do you call a function that has side-effects? (like putStr) I know that "function" is the wrong term.
"action", "command", "program", etc. HTH Christian