Referential Transparency


A referentially transparent function is one in which the function call is interchangeable with the output of the function. This interchangeability shouldn’t affect a program’s side effects or side causes. Like immutability, referential transparency is associable with pure functions. In fact, the latter is a metric for measuring the former.

Get hands-on with 1200+ tech skills courses.