2 ms·
Fun blog post! I know nothing about Haskell as well. Quite casual, just what I needed. Thanks for writing it up! One blogging tip (note: the rest was perfect)
by mettamage 7y ago
Fun blog post! I know nothing about Haskell as well.
Quite casual, just what I needed. Thanks for writing it up!
One blogging tip (note: the rest was perfect): if you would've chopped the following in 2 or 3 lines, then the casual style would be perfect.
> primes n = take n $ sieve [2..]
where sieve (p:xs) = p : sieve [x | x <- xs, x `rem` p > 0]
sieve [] = []
I feel that it'd be really hard to do though.
- aurbano 7y agoThanks! And good idea, I just updated it breaking that down a bit more :)