> For the complete documentation index, see [llms.txt](https://hanfak.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hanfak.gitbook.io/workspace/general-paradigms/programming-types/functional-programming/referential-transparancy.md).

# Referential transparency

* it implies that functions consistently yield the same results given the same input, irrespective of where and when they are invoked.
  * That is, function evaluation depends less—ideally, not at all—on the side effects of mutable state
* This is a property of immutability
  * we get an object and we expect it not to change&#x20;
