[Haskell-cafe] In-place modification

Hugh Perkins hughperkins at gmail.com
Sun Jul 15 16:24:55 EDT 2007


On 7/15/07, Donald Bruce Stewart <dons at cse.unsw.edu.au> wrote:
>
> or maybe 'pidigits', a lazy pi generator,
>
>
> http://shootout.alioth.debian.org/gp4/benchmark.php?test=pidigits&lang=ghc&id=0
>
>
This is I/O bound, which isnt interesting, unless you really want to
benchmark I/O to console?

We can improve it by instead of printing the digits to I/O, returning the
number of occurrences of a specific digit, let's say 3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070715/a25ce89e/attachment.htm


More information about the Haskell-Cafe mailing list