
2 Oct
2008
2 Oct
'08
11:35 a.m.
main = do dc <- getDirectoryContents "./foo/" mapM_ putStrLn dc
Translating out the do notation (http://www.haskell.org/haskellwiki/Keywords#do):
main = getDirectoryContents >>= \dc -> mapM_ putStrLn dc
Woops, I lost "./foo/" here, but it should be fairly easy to insert through the remaining translations. Thanks Neil ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ==============================================================================