difference between pure and impure function in java
Answers
Answered by
2
Explanation:
In pure function it doesn't modify the external variable/data outside the scope and results the same output given in the same input. In impure function it mutates data/variable outside it's lexical scope Hope this helps
plz mark as brainleast
Similar questions