Foundations of Functional Programming
Purity, evaluation, the lambda calculus, functions and recursion: the ideas everything else in the section builds on. Part of Functional programming.
In Home
In Functional Programming
In Foundations
Purity, evaluation, the lambda calculus, functions and recursion: the ideas everything else in the section builds on. Part of Functional programming.
How functional programs are evaluated, from reduction, the substitution model and Church-Rosser to strict and non-strict semantics, thunks and sharing, space leaks, and call-by-name in Scala.
Functions as values in Haskell and Scala: lambdas and closures, returning functions for API design, currying and partial application, custom control structures, and composition into pipelines.
The lambda calculus as a programmer needs it: terms and binding, β-reduction, currying, reduction strategies, and Church encodings of booleans and numbers.
Referential transparency and where substitution breaks, side effects, immutability and persistent data structures, and the functional core with an imperative shell.
Writing recursive functions with pattern matching and accumulators, map as abstracted recursion, foldr and foldl with their corner cases, Foldable, and combinators built from folds.
Changes apply to the theme selected here. Switching it also switches the site theme.