3 ms·
> Ok sure but I was meaning in general. So was I, the article denotes that JS functions can be impure because values carry a "purity stigma" (the value itself
by masklinn 10y ago
> Ok sure but I was meaning in general.
So was I, the article denotes that JS functions can be impure because values carry a "purity stigma" (the value itself can embed impure operations in its manipulation or evaluation).
> Anyway pass in (repeat 0) and you get a side effect. :-)
That's a good point, laziness also carries a "purity stigma". You could actually sneak in unsafePerformIO with an unfold or a lazy list construction.