Small confusion with monads

Dmitry Olyenyov dema@cerberus.ibb.kz
04 Oct 2001 16:02:33 +0700


Hello!

Can anybody help me with writing function that does
following:

I have the list ["file1","file2","file3"] and I need the
function to return me the list of contents of these files.

contents :: [String] -> [String]

contents (file:files) = do c <- readFile file
........


Thanks in advance for help!                           
-- 
  With best regards, Dmitry