What is a Pure Function?

Whenever you are told about pure functions, keep the following in mind. Pure Functions are functions the given an input parameter will always return the same output without causing side effects. When do Side Effects occur? Side Effects occur when an executed function changes state within the application, which are known as impure functions. Why Pure Functions? I will mention some topics that make the use of function so interesting....

June 16, 2019 · 2 min · Helder Burato Berto