What is the difference between pure function and impure function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between pure function and impure function?

4th Sep 2019, 7:00 AM
Sai Krishna
Sai Krishna - avatar
3 Answers
+ 4
Pure function has its parameter used within the function but impure doesn't use it within and without
4th Sep 2019, 8:24 PM
Joseph Onipede
Joseph Onipede - avatar
0
Pure functions do not modify the value of the arguments passed to the function unlike impure functions
4th Sep 2019, 10:39 AM
Riya Jha
Riya Jha - avatar