[Haskell-cafe] Re: Tutorial uploaded
Tomasz Zielonka
tomasz.zielonka at gmail.com
Wed Dec 21 14:05:04 EST 2005
On Wed, Dec 21, 2005 at 06:58:14PM +0000, Philippa Cowderoy wrote:
> Surely the actual explosion comes about because PutStr forces the lot at
> once? If PutStr were to evaluate a character at a time, the laziness would
> be slow and spew a lot of garbage to collect but not hang on to as much
> space as you suggest.
Try running
putStrLn (unlines (repeat "hello!"))
You may be surprised ;-)
Best regards
Tomasz
--
I am searching for a programmer who is good at least in some of
[Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland
More information about the Haskell-Cafe
mailing list