In a Haskell project I'm given to debug, there are instances in the code where map
is used with only one parameter - a list - is passed.
For example
printReports :: [Report] -> IO ()
printReports = putStrLn . unlines . map show
and
printRuns' :: [Run] -> IO ()
printRuns' = putStrLn . unlines . map showRecipes'
What does map
mean/do in this context?