Functional Programming: Principles and a Simple Implementation

Introduction Functional programming philosophy: write operations as a series of nested function or method calls whenever possible. Characteristics of functional programming: every method must have a return value (which is the object itself); functions or blocks are passed as parameters (the block's parameter is the value to operate on, and the block's return value is the result of the operation). A Simple Calculator Using Functional Programming Code All code from this article can be found on my GitHub .