[Haskell-cafe] Useful: putCharLn {inspire by the Int->[Char] thread

Neil Mitchell ndmitchell at gmail.com
Sat Aug 19 13:24:47 EDT 2006


Hi

> c2Str c = c:[]

This function is often known as box, its much more general than char
to string, it puts any single element in a list like box

Thanks

Neil


More information about the Haskell-Cafe mailing list