pure function vs impure function

difference between pure function , and impure function 
pure function take value and return results  like  pow(2,8)  result is : 8 
impure function it’s return no thing like print  or any function has   indirect action like when you type  obj.write that will go to file and return no thing to you  . 
  

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s