Help


from Wikipedia
« »  
In practice, the difference between a mathematical function and the notion of a function used in imperative programming is that imperative functions can have side effects that may change the value of program state.
Because of this, they lack referential transparency, i. e. the same language expression can result in different values at different times depending on the state of the executing program.
Conversely, in functional code, the output value of a function depends only on the arguments that are input to the function, so calling a function f twice with the same value for an argument x will produce the same result f ( x ) both times.
Eliminating side effects can make it much easier to understand and predict the behavior of a program, which is one of the key motivations for the development of functional programming.

1.850 seconds.