ABSTRACT

This chapter defines functional programming. In essence, functional programming tries to make functions in programming more like functions in mathematics—they are self-contained and have no side effects. In a purely functional program, variables are single assignment and data structures are persistent.

The central idea of functional programming is that programs should be more like functions in mathematics.