David Leimbach wrote:
On 5/18/07, W B Hacker <[EMAIL PROTECTED]> wrote:
Rob Pike wrote: (starter... snipped)
http://en.literateprograms.org/Sieve_of_Eratosthenes_%28Haskell%29
I list the Haskell link as it seemed closest in concept - other
implementations
at top of that page.
I'm not sure that's even valid Haskell though. Looks like two type
definitions for the same function, and even if you correct that I
don't think it produces what one might think it does. At least not on
GHC :-)
Still the idea looks nice :-)
Pass. I don't actually grok Haskell, just saw the use of a 'filter' structure as
a similarity to Newsqueak.
The version in Forth. OTOH I have used.
Or one much like it - Ray Duncan's LMI Forth on CP/M 2.X, CP/M-86, & PCDOS.
Bill