"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler
The preceding statement is the essence of functional programming.
A function is a basic building block of code which helps in evaluating mathematical expressions. The style puts emphasis on the expressions. In functional programming functions are the first class values, enabling them to pass as an argument to other functions. Also, they can be returned from the function as a result. In functional programming, the result of the expression after the evaluation is completely dependent upon the arguments which have been passed to the function and have not dealt with...