Hacker News new | ask | show | jobs
by lotsoflumens 3655 days ago
No - a pure function is a function that has no side-effect (other than heat loss).

You are talking about referential transparency. Even functions that are not pure can be referentially transparent.