Useful list output function

Kevin S. Millikin kmillikin@atcorp.com" <kmillikin@atcorp.com
Wed, 30 Jul 2003 15:02:00 -0500


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

Study the Prelude :)

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