two easy questions

Stefan Karrmann sk@mathematik.uni-ulm.de
Fri, 21 Feb 2003 18:33:10 +0100


Mike T. Machenry (Wed, Feb 19, 2003 at 10:23:45PM -0500):
> Question 1: Is there an easier, more elegant way to write this code?
> 
> output a b c d e = println "Hello, this is " ++ show a ++ " a really hard "
>   "to write function that " ++ show b ++ " would be easier to write with "
>   "a printf " ++ show c ++ show d ++ show e
You can write a printf-like function in Haskell, s.t.
output = <construct-printf.hs>

google it, since I do not remember the location of the paper.

> -- ?
> 
> Thanks for the help.
> -mike

-- 
Stefan Karrmann