[Haskell-cafe] In-place modification

Chaddaï Fouché chaddai.fouche at gmail.com
Sat Jul 14 20:07:33 EDT 2007


2007/7/15, Chaddaï Fouché <chaddai.fouche at gmail.com>:
> Well, I see, it is indeed very complex requirement...
> Maybe you could do the very complex following operation to at least
> test the speed of this implementation : let lastPrime = primes !!
> 17983
>

Or if you really want a function with your requirement, maybe you
could take the painful steps needed to write :
let numberOfPrimes = length $ takeWhile (< 200000) primes
?
-- 
Jedaï


More information about the Haskell-Cafe mailing list