Referential Transparency
Learn about referentially transparent functions with different useful examples.
Overview
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 1400+ tech skills courses.