[Haskell-cafe] In-place modification

Isaac Gouy igouy2 at yahoo.com
Mon Jul 16 16:29:26 EDT 2007

On Jul 15, 1:25 pm, "Hugh Perkins" <hughperk... at gmail.com> wrote:

> > or maybe 'pidigits', a lazy pi generator,

> This is I/O bound, which isnt interesting, unless you really want to
> benchmark I/O to console?

a) output is redirected to /dev/null - read the FAQ

b) the I/O is cheap

   PiDigitSpigot class
and change
   Console.Write (digits.Next ());
   Console.Write (1);

~0.15s down from ~12.8s 

Got a little couch potato? 
Check out fun summer activities for kids.

More information about the Haskell-Cafe mailing list