Skip to content

Replacing a call with its result

An expression is referentially transparent when it can be replaced by its value without changing the program's behaviour.

Which is referentially transparent?