Tuesday, December 13, 2011

What are the pure and impure functions?

Pure Functions:
Pure functions do not modify their arguments or output. The result of a pure function call is the return value.
Impure Functions:
Just opposite to pure function