December 2022
Intermediate to advanced
528 pages
15h 41m
English
Functional programming is inspired by mathematical functions, which are not contingent on any notion of mutation, or state change, or variable assignment. A functional programming style favors immutable data. Imperative code based on mutation is replaced with programs that combine immutable values into expressions. In particular, series of immutable values are used as a substitute for the mutable data structures typical of imperative programs.
Mathematical functions were characterized earlier as mappings of values from an input set to values in an output set. For instance, an absolute value function maps integers (of any sign) to non-negative natural numbers. Programming language functions ...
Read now
Unlock full access