On Wednesday, July 30, 2003 1:52 PM, Shawn P. Garbett 
[SMTP:[EMAIL PROTECTED] wrote:
>
> output  :: (a -> IO b) -> [a] -> IO ()
> output f = (foldr (>>) (return ())).(map f)

Study the Prelude :)

> output :: (a -> IO b) -> [a] -> IO ()
> output = mapM_


_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to