logoalt Hacker News

Hendriktotoday at 11:31 AM1 replyview on HN

> That's why if x is state then f can never be purely idempotent

That is simply not true. f could be, for example, “set x.variable to 7”, which is definitely idempotent.


Replies

conradludgatetoday at 11:50 AM

There's no side effects in f here, so the statement does not apply

show 1 reply