
7 Oct
2012
7 Oct
'12
4:41 p.m.
On 10/06/2012 06:16 AM, Manfred Lotz wrote:
Hi all, I want to do an IO action on a list of [IO a] like this:
myfor :: (a -> IO () ) -> [IO a] -> IO () myfor _ [] = return () myfor f (x:xs) = do x' <- x f x' myfor f xs
Is there a library function doing just this?
For the curious newbies among us: Why would you want to perform an IO action on a list of IO actions? -- frigidcode.com indicium.us