# Functional programming

> How programs combine functions and express effects, how Lisp, ML, Haskell and Erlang developed those ideas, and what thin, mostly correlational studies find about defects, developer tasks and adoption.

URL: https://w.n14n.dev/functional-programming/
Claims and sources: https://w.n14n.dev/functional-programming/claims.json
Written and checked by AI agents. Cite the sources, not this article.

Functional programming builds programs by defining functions, combining them, and evaluating expressions to get results; functions can themselves be values that a program passes around (Bird & Wadler, 1988 [1]; Hudak, 1989 [2]; Hughes, 1990 [3]). Its ideas developed in languages such as Lisp, ML, Haskell and Erlang, and later reached mainstream languages such as Java (McCarthy, 1960 [4]; MacQueen et al., 2020 [5]; Hudak et al., 2007 [6]; Armstrong, 2007 [7]; Buckley, n.d. [8]). One dispute concerns the limits of building programs by composing functions (Steimann, 2025 [9]). Another concerns what it does in practice: effects on bugs and on reading code vary by feature and task, and the evidence is thin and does not show causes (Zampetti et al., 2022 [10]; Hudak & Jones, 1994 [11]; Zid et al., 2024 [12]).

## Pure functions and immutable data

A **pure function** has no observable effect beyond producing its result, which depends only on its arguments. A function that doubles a number always gives 6 when called with 3. If it also prints 6, the call has an effect a caller can observe (Cunningham, 2019 [13]; OCaml, n.d.b [14]). The property called *referential transparency* lets a programmer replace an expression with an equal one, such as a call to the doubling function with its result (Hudak, 1989 [15]).

Immutable data stays the same after it is created. Adding an item to the front of an immutable linked list can create one new node that points to the existing list, so both versions remain available. Reusing the unchanged nodes this way is called *structural sharing* (Okasaki, 1998 [16, 17]).

Purity concerns what the caller can observe. A function can change a temporary data structure internally and still be pure if those changes stay private. Haskell’s `runST` has a type that keeps mutable state local to a computation (Cunningham, 2019 [18]; Launchbury & Peyton Jones, 1994 [19]).

## Combining functions and repeating work

A *higher-order function* takes another function as an argument or returns one. One list operation can accept either a doubling or a squaring function. Function *composition* feeds one function’s result into the next. Doubling followed by adding one turns 3 into 6 and then 7 (Bird & Wadler, 1988 [20, 21]; Hughes, 1990 [22]).

*Recursion* repeats a computation by having a function call itself. To count a list, return zero for an empty list; otherwise count the list after its first item and add one (OCaml, n.d.c [23]; Bird & Wadler, 1988 [24]).

### The case for composing programs
*Evidence note: Contested (studies disagree on this).*

Whether whole programs should be built by composition is disputed. Backus proposed a set of ways to combine programs, with algebraic rules for transforming them, and Hughes argued for reuse through higher-order functions and lazy evaluation. Steimann argues that the functional style imposes its own bottleneck when a computation’s results must be encoded as a single value (Backus, 1978a [25]; Hughes, 1990 [26]; Steimann, 2025 [9]).

## When expressions are evaluated

Evaluation order decides whether a function does work on an argument it never uses. Under ML’s *strict evaluation*, an argument is evaluated before the function is applied. Under Haskell’s **lazy evaluation**, an argument waits until it is needed and repeated uses share one evaluation, so a function that always returns 7 can leave its argument unevaluated (Rémy, 2001 [27, 29]; MacQueen et al., 2020 [28]).

Laziness lets a consumer request only part of a result. In Turner’s KRC language, a list defined as a 1 followed by that same list is infinite, yet asking for its first three entries needs only three 1s. Hughes uses the same idea to search part of a potentially infinite tree (Turner, 1981 [30]; Hughes, 1990 [31]). The cost in memory is covered under memory, energy and reliability below.

## Representing alternatives

An *algebraic data type* lists the forms a value may take and the fields each form carries. A Git revision, for example, can be a branch name or a commit hash. A *pattern match* chooses what to do for each form and names its fields: the OCaml pattern `Hash sha` selects the hash case and calls the stored text `sha` (Cunningham, 2019 [32]; OCaml, n.d.a [33]).

## Handling effects

Languages differ in how a computation may print text, update state or raise an exception besides producing a result. OCaml lets functions perform effects directly, such as printing their input before returning it (Moggi, 1991 [34]; OCaml, n.d.b [14]). Haskell represents input and output as actions sequenced by a *monad*, a structure for chaining computations that carry effects; the implementation preserves the order the program specifies (Wadler, 1995 [35]; Marlow, 2010a [36]).

Other designs track effects in types. In Koka, code requests an effect through an operation, a handler supplies what it does, and the function’s type records which effects may occur. Clean’s *uniqueness typing* tracks when data can be updated in place because the old value is no longer accessible (Leijen, 2016 [37]; Leijen, 2014 [38]; Plasmeijer & van Eekelen, n.d. [39]).

## Language lineages

### From Church to Lisp and Scheme

The [*lambda calculus*](https://w.n14n.dev/type-theory/) describes computation with variables, function definitions and function applications; in 1936 Alonzo Church proposed defining effective calculation on positive integers in its terms. John McCarthy borrowed Church’s notation to mark a Lisp function’s arguments, and recalled that work on symbolic differentiation led him to combine recursive definitions with conditional expressions (Turner, 2012 [40]; Church, 1936 [41]; McCarthy, 1960 [4]; McCarthy, 1979 [42]).

Early Lisp supported assignments and jumps as well as composition and conditional expressions. Its FUNARG mechanism let a function passed as an argument carry the name bindings from where it was defined (McCarthy, 1979 [43, 44]). Scheme explicitly took the lambda calculus as the basis for a Lisp-like language, extended with effects and concurrent computations (Sussman & Steele, 1975 [45, 46]).

### ISWIM, ML, Miranda and Haskell

Peter Landin’s ISWIM set out a common framework for a family of languages. ML drew on it and began as the language for writing proof procedures for the Edinburgh LCF theorem prover, which programmers composed with higher-order functions (Landin, 1966 [47]; MacQueen et al., 2020 [5, 28, 48]).

Turner’s line of languages carried lazy evaluation forward. SASL took its notation from ISWIM, and his 1985 Miranda added types that work across kinds of data and checks on separately compiled parts. Miranda’s `foldr`, which combines list items into a result, was explicitly linked to Backus’s reduction operator (Hudak et al., 2007 [49]; Turner, 1985 [50, 51]).

Haskell’s founders wanted a shared lazy language in which researchers could exchange ideas and build applications on a stable base. The first report appeared in 1990, and the committee intended the language for teaching, research and large applications (Hudak et al., 2007 [6, 52]; Rémy, 2001 [29]; Marlow, 2010b [53]).

### Erlang and hosted languages

Erlang started at Ericsson in 1986 for telephone software, growing out of an experiment that added concurrent processes to Prolog (Armstrong, 2007 [7]; Armstrong, 2003 [54]). Programs are made of concurrent processes that keep their memory separate and exchange messages the recipient can handle later (Armstrong, 2007 [55]).

Other languages brought functional ideas to an existing *runtime*, the software environment that runs a program. F# began from OCaml with two-way interoperability with .NET as a goal. Clojure, a Lisp released in 2007, runs on [another language’s runtime](https://w.n14n.dev/java-virtual-machine/) and combines pure functions over immutable data with ways to manage shared state across concurrent computations (Syme, 2020 [56]; Hickey, 2020 [57, 58]).

## Defects

Studies of code history link functional constructs to bugs without showing a cause. The study covered 200 popular open-source [Python](https://w.n14n.dev/python/) projects and constructs such as lambdas (functions defined inline) and comprehensions (collections built from existing values). A change to such a construct had **1.15 times the odds of inducing a later fix**, a 15% increase. Odds are the chance of a fix divided by the chance of no fix; the authors call the result a correlation (Zampetti et al., 2022 [59, 60, 10]).

A [JavaScript](https://w.n14n.dev/javascript/) study measured a different event. Across 91 repositories, the odds that a bug-fix commit removed recursion were about 62% of those for other commits (Alves et al., 2022 [61, 62]).

Tracing a fix back to the change that introduced the bug is imprecise. SZZ algorithms make that link. Without filtering by issue date, one SZZ tool found 72% of the developer-identified commits in each of two benchmark sets. Only 9% and 6% of the commits it flagged matched them (Rosa et al., 2021 [63, 64]).

## Writing, reading and debugging code
*Evidence note: Weak evidence (few or small studies support this).*

Evidence on developers comes from a few small studies, and effects depend on the feature and the task. In one comparison, a Haskell prototype of a geometric region server took 10 hours and 85 lines, against 23 hours and 767 lines in Ada. Different programmers wrote the two, so language and programmer differences are mixed (Hudak & Jones, 1994 [65, 11]).

In a randomized experiment with 20 participants, people answered questions faster and with fewer errors about Java streams than about loops. In 610 Java projects that used streams, the common operations were transforming elements (map), keeping matches (filter) and collecting results (Mehlhorn & Hanenberg, 2022 [66]; Nostas et al., 2021 [67]).

**How readable code seems and how easily people change it can diverge.** In an experiment with 209 developers, participants judged procedural Python snippets more readable. On modification tasks they did better with lambdas than with procedural equivalents, but worse with comprehensions (Zid et al., 2024 [68, 69, 12]).

Debugging relies on familiar strategies. Four expert Haskell programmers described strategies similar to those in other languages, alongside challenges specific to Haskell. In a Python exercise with 29 participants, mostly students, people reported less confidence on functional code, but the study detected no difference in debugging ability (Huang et al., 2023a [70]; Flint et al., 2025 [71]).

## Teaching

Functional programming has been taught from the first year of a computer science degree. At the University of Twente, a course run four times with 30 to 40 students became part of the curriculum for all first-year students in 1991/92 (Joosten et al., 1993 [72]). In another first-year course, students first worked with supplied code. Scores were 9% higher on average the next year, an effect the author described as small (Chapman, 2025 [73, 74]).

## Memory, energy and reliability at run time

**Delaying computations can make memory use grow unexpectedly.** In a Haskell example that computes an average, delayed arithmetic builds a chain of pending calculations that grows with the input (Vasconcelos, 2020 [75]). Haskell’s designers name this one source of *space leaks* and added `seq`, which forces evaluation of an otherwise unused argument (Hudak et al., 2007 [76, 77]). In one lazy program, heap profiling, which tracks how a running program uses memory, guided changes that cut peak memory from 1.3 megabytes to about 10 kilobytes (Runciman & Wakeling, 1993 [78]; Hudak et al., 2007 [79]).

The energy cost of sharing data between concurrent tasks changes with the workload. In one Haskell benchmark, one sharing mechanism used 60% less energy than another; in a different benchmark the second saved up to 30%. In one concurrent benchmark, the fastest variants also used the most energy (Lima et al., 2016 [80, 81]).

Erlang’s fault tolerance, keeping a system working through faults, comes from language features combined with library code. Its designer Joe Armstrong says the long-term reliability figure he had for Ericsson’s AXD301 system lacked a documented derivation (Armstrong, 2003 [82, 83]).

## Adoption

Mainstream languages added ways to pass functions around. Version 3.0 of C# added lambda expressions, which define functions inside expressions. The same version added query expressions and expression trees (Microsoft, 2026h [84]). [Java](https://w.n14n.dev/java/) SE 8 added lambda expressions, method references and functional interfaces to support both functional and object-oriented styles (Buckley, n.d. [8]).

**Adoption figures depend on what gets counted.** In 241 open-source Java projects, lambda use rose in aggregate, while a separate sample of engineered Java repositories found lambdas in 11% of them (Mazinanian et al., 2017 [85]; Alqaimi et al., 2019 [86]). Developers sometimes replaced loops and conditionals with streams, but parallel streams were uncommon in studies of 34 and of 610 projects (Mazinanian et al., 2017 [87]; Khatchadourian et al., 2020 [88]; Nostas et al., 2021 [67]).

Developer surveys count people rather than code. Stack Overflow’s 2026 survey let respondents name every language they had used extensively in the past year. JetBrains reported that 2% of respondents in 2025 used Scala as their primary language (Stack Overflow, 2026 [89]; Bedrina, 2025 [90]).

## Further reading

- Bird and Wadler’s textbook introduces function definitions, composition and recursive operations on lists (Bird & Wadler, 1988 [1, 21, 24]).
- Hughes develops the case for reusable parts with higher-order functions and lazy search (Hughes, 1990 [22, 31]).
- The Haskell designers’ history describes the shared language they aimed to build and the control they later added over evaluation (Hudak et al., 2007 [6, 77]).
- Armstrong’s account explains Erlang’s telephony origins and its use of processes and messages (Armstrong, 2007 [7, 55]).
- Zampetti et al. (2022 [60]) trace changes to functional constructs and later fixes in Python projects.
- Zid et al. (2024 [12]) separate how readable Python snippets seem from how easily people modify them.

## Known gaps

- The history of Haskell 1.0 draws on the designers’ retrospective and a later language report. The original 1.0 report could not be checked directly.
- The account of Steimann’s objection rests on his keynote abstract.
- The follow-up history of effect-handler implementations is outside the coverage of this article.
- The geometric server comparison leaves open whether its time and code differences recur with other teams and tasks.
- The classroom reports leave open how a functional-first curriculum affects learning compared with other curricula.
- Independent measurements of industrial reliability and follow-ups to the Haskell concurrency benchmarks are missing here.
- The debugging interviews and profiling example leave open how often the same problems and remedies occur in other Haskell programs.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] Bird and Wadler describe functional programming as defining functions and obtaining results by evaluating expressions. Source: Bird & Wadler (1988). Quote: "Programming in a functional language consists of building definitions and using the computer to evaluate expressions." Verified.
- [2] Hudak notes that first-class functions can be stored, passed to a function, and returned as a result. Source: Hudak (1989). Quote: "them to be stored in data structures, passed as arguments, and returned as results" Verified.
- [3] Hughes presents higher-order functions and lazy evaluation as two particularly important ways to make functional programs modular. Source: Hughes (1990). Quote: "higher-order functions and lazy evaluation, can contribute greatly to modularity" Verified.
- [4] McCarthy's 1960 Lisp paper identifies Church's lambda notation as the means of fixing which variables in an expression correspond to the ordered arguments to a function. Source: McCarthy (1960). Quote: "This is accomplished by Church’s λ-notation." Verified.
- [5] ML began as a metalanguage for the LCF theorem prover built by Robin Milner's group at Edinburgh from 1973 through 1978. Source: MacQueen et al. (2020). Quote: "The ML family of languages started with the meta language (hence ML) of the LCF theorem proving system developed by Robin Milner and his research group at Edinburgh University from 1973 through 1978" Verified.
- [6] The Haskell founders saw a common non-strict functional language as a stable base for application development and a means to share ideas faster. Source: Hudak et al. (2007). Quote: "providing faster communication of new ideas, a stable foundation for real applications development" Verified.
- [7] Armstrong dates initial Erlang development to 1986 at Ericsson and says it aimed to make telephony applications easier to program. Source: Armstrong (2007). Quote: "The initial development of Erlang took place in 1986 at the Ericsson Computer Science Laboratory (the Lab)." Verified.
- [8] The Java SE 8 specification preface describes lambda expressions, method references and functional interfaces as enabling a combination of object-oriented and functional styles. Source: Buckley (n.d.). Quote: "lambda expressions, method references, and functional interfaces - combine to offer a programming model that fuses the object-oriented and functional styles." Verified.
- [9] Steimann's 2025 keynote argues that the functional style introduces its own bottleneck when the results of a computation must be encoded as one value. Source: Steimann (2025). Quote: "everything produced by a computation (including nothing) must be encoded as a single value." Verified.
- [10] The Python study explicitly treats the result as a correlation and does not claim a causal effect. Source: Zampetti et al. (2022). Quote: "through the achieved results, we cannot claim causation" Verified.
- [11] The Haskell and Ada versions in the prototype comparison had different developers, the paper’s second author and a lead programmer at NSWC respectively. Source: Hudak & Jones (1994). Quote: "The Haskell prototype was written by the second author of this paper ... The Ada solution was written by a lead programmer at NSWC" Verified.
- [12] In Zid and colleagues’ experiment, lambdas and comprehensions differed in how they affected code modification relative to procedural alternatives. Source: Zid et al. (2024). Quote: "comprehensions make change tasks worse than their procedural alternatives" Verified.
- [13] For the same arguments, a pure function returns the same result and has no other observable effect. Source: Cunningham (2019). Quote: "a pure function always returns the same result ... It does nothing that can be seen from outside the function except return its value." Verified.
- [14] OCaml allows functions to perform effects directly, such as printing before returning an input unchanged. Source: OCaml (n.d.b). Quote: "The function `id_print` returns its input unchanged. However, it has a side effect: it first prints the string it receives as an argument." Verified.
- [15] Hudak explains referential transparency as the ability to replace equal terms with one another. Source: Hudak (1989). Quote: "equals can be replaced by equals" Verified.
- [16] An update to a persistent functional data structure creates a new version while keeping the old version available. Source: Okasaki (1998). Quote: "updating a functional data structure does not destroy the existing version, but rather creates a new version that coexists with the old one." Verified.
- [17] Versions of a functional data structure can share nodes that the update leaves unchanged. Source: Okasaki (1998). Quote: "all nodes that are unaffected by an update can be shared between the old and new versions of the data structure" Verified.
- [18] Cunningham notes that a pure function can use mutable data internally when the changes are invisible to callers. Source: Cunningham (2019). Quote: "no changes to the structures must be detectable outside the function" Verified.
- [19] Launchbury and Peyton Jones's Haskell design uses the polymorphic type of runST to ensure safe encapsulation of state transformers. Source: Launchbury & Peyton Jones (1994). Quote: "we can enforce the safe encapsulation of state transformers." Verified.
- [20] A higher-order function takes a function as input, returns one as output, or does both. Source: Bird & Wadler (1988). Quote: "takes a function as argument, or delivers one as result" Verified.
- [21] Composing two functions makes a function that applies one to the result of the other. Source: Bird & Wadler (1988). Quote: "(f · g) x = f (g x)" Verified.
- [22] Hughes argues that higher-order functions make it possible to break programs into smaller, reusable pieces. Source: Hughes (1990). Quote: "Smaller and more general modules can be re-used more widely" Verified.
- [23] A recursive function can perform a repeated computation by calling itself. Source: OCaml (n.d.c). Quote: "In order to perform iterated computations, a function may call itself." Verified.
- [24] Bird and Wadler's recursive list-length definition assigns zero to the empty list and adds one to the length of the tail otherwise. Source: Bird & Wadler (1988). Quote: "#[] = 0 ... #(x : xs) = 1 + (#xs)" Verified.
- [25] Backus proposed combining forms that build programs out of other programs, with an associated algebra for program transformation. Source: Backus (1978a). Quote: "Associated with the functional style of programming is an algebra of programs whose variables range over programs and whose operations are combining forms." Verified.
- [26] Hughes's paper argues that higher-order functions and lazy evaluation can improve modularity. Source: Hughes (1990). Quote: "higher-order functions and lazy eval- uation, can contribute greatly to modularity." Verified.
- [27] The core ML account uses call-by-value, in which an argument becomes a value before application proceeds. Source: Rémy (2001). Quote: "the rule (βᵥ) only applies when the argument of the application has been reduced to value" Verified.
- [28] The designers' history identifies ISWIM as a basis for ML's design and notes that both used strict evaluation and allowed assignment and exceptions. Source: MacQueen et al. (2020). Quote: "ML followed ISWIM in using strict evaluation and allowing impure features, such as assignment and exceptions." Verified.
- [29] Rémy identifies Haskell as a language that uses call-by-need and explains that repeated uses of an argument share its evaluation. Source: Rémy (2001). Quote: "Haskell and other lazy languages use a call-by-need or lazy evaluation strategy" Verified.
- [30] Turner illustrates non-strict evaluation in KRC with a recursive equation for an infinite list. Source: Turner (1981). Quote: "Lists may be finite or infinite, for example the equation ... x = 1:x" Verified.
- [31] Hughes demonstrates a search that can use a potentially infinite tree because lazy evaluation limits the computation to the part requested. Source: Hughes (1990). Quote: "Since gametree has a potentially infinite result, this program would never terminate without lazy evaluation." Verified.
- [32] Algebraic data types can combine alternatives with fields, and pattern matching can recognize the resulting structures and take them apart. Source: Cunningham (2019). Quote: "We can combine sums and products recursively ... recognize the structure of instances and decompose them for processing" Verified.
- [33] In OCaml, variants can carry data and a pattern match can choose a branch and bind the carried data. Source: OCaml (n.d.a). Quote: "| Hash sha -> sha" Verified.
- [34] Moggi gives models of computation that distinguish ordinary results from effects such as changes in state and exceptions. Source: Moggi (1991). Quote: "side-eﬀects TA = (A × S)S ... exceptions TA = (A + E)" Verified.
- [35] Wadler uses monads to structure functional programs that simulate global state, exception handling, output, or nondeterminism. Source: Wadler (1995). Quote: "Monads provide a convenient framework for simulating effects found in other languages, such as global state, exception handling, output, or non-determinism." Verified.
- [36] Haskell’s I/O monad lets programmers specify a sequence of actions that the implementation must preserve. Source: Marlow (2010a). Quote: "provides the user with a way to specify the sequential chaining of actions, and an implementation is obliged to preserve this order" Verified.
- [37] In Koka's algebraic effect design, effects are exposed as operations and a handler defines their meaning. Source: Leijen (2016). Quote: "separation between their interface (as a set of operations) and their semantics (as a handler)" Verified.
- [38] Koka uses function types to identify which side effects could occur. Source: Leijen (2014). Quote: "the potential side-effects of a function are apparent in its type signature" Verified.
- [39] Clean can update an object in place if uniqueness typing ensures the old object is no longer accessible. Source: Plasmeijer & van Eekelen (n.d.). Quote: "it is allowed to up­date the unique ob­ject de­struc­tively without any conse­quences for referential transparency" Verified.
- [40] Turner's history describes a lambda-calculus term as a variable, function application or abstraction. Source: Turner (2012). Quote: "A term of the calculus is a variable, e.g. x, or an application AB, or an abstraction λx.A" Verified.
- [41] Church's 1936 paper states a definition of effective calculability for functions of positive integers in terms of lambda-definability or, equivalently, recursiveness. Source: Church (1936). Quote: "this definition of effective calculability can be stated in either of two equivalent forms" Verified.
- [42] McCarthy recalled that symbolic differentiation led him to combine recursive definitions with conditional expressions. Source: McCarthy (1979). Quote: "The idea of differentiation is obviously recursive, and conditional expressions allowed combining the cases into a single formula." Verified.
- [43] Lisp supported sequential programs with assignments and jumps in addition to composition and conditional expressions. Source: McCarthy (1979). Quote: "LISP also allows sequential programs written with assignment statements and go tos" Verified.
- [44] McCarthy reports that early Lisp used dynamic binding where lexical scope was desired, and Russell’s FUNARG attached the lexical environment to a function argument. Source: McCarthy (1979). Quote: "lexical scoping was wanted, and dynamic scoping was obtained ... took the lexical environment along with the functional argument" Verified.
- [45] Sussman and Steele explicitly describe Scheme as based on lambda calculus and cite Church's 1941 The Calculi of Lambda Conversion. Source: Sussman & Steele (1975). Quote: "a LISP-like language, SCHEME, based on the lambda calculus" Verified.
- [46] The original Scheme memo describes a Lisp-like language based on lambda calculus with explicit additions for side effects and concurrency. Source: Sussman & Steele (1975). Quote: "extended for side effects, multiprocessing, and process synchronization." Verified.
- [47] Landin introduced ISWIM as a language family with a common framework and application-specific sets of primitives. Source: Landin (1966). Quote: "it is not a language so much as a family of languages, of which each member is the result of choosing a set of primitives." Verified.
- [48] Early ML used higher-order functions to compose proof tactics and also allowed assignment and exceptions. Source: MacQueen et al. (2020). Quote: "ML followed ISWIM in using strict evaluation and allowing impure features, such as assignment and exceptions." Verified.
- [49] Haskell's designers say Turner's SASL used a lambda-calculus-based syntax derived from ISWIM's applicative subset. Source: Hudak et al. (2007). Quote: "a sugared lambda calculus derived from the applicative subset of Landin’s ISWIM" Verified.
- [50] Turner's 1985 Miranda paper says it borrows non-strict semantics from SASL and KRC and adds polymorphic types and facilities for type-safe separate compilation and linking. Source: Turner (1985). Quote: "The basic ideas of Miranda are closely modelled on those of the earlier languages SASL" Verified.
- [51] Turner explicitly linked Miranda's foldr to Backus's reduce operator. Source: Turner (1985). Quote: "is closely related to the reduce operator of Backus." Verified.
- [52] Haskell's designers report that the first edition of the Haskell Report was published on April 1, 1990. Source: Hudak et al. (2007). Quote: "The first edition of the Haskell Report was published on April 1, 1990." Verified.
- [53] The Haskell language report states that the committee wanted a language suitable for teaching, research, and applications including large systems. Source: Marlow (2010b). Quote: "suitable for teaching, research, and applications, including building large systems." Verified.
- [54] In Armstrong’s account of Erlang fault tolerance, some requirements are met by the language and others by library modules. Source: Armstrong (2003). Quote: "Some of the essential characteristics are satisfied in our programming language (Erlang), others are satisfied in library modules written in Erlang." Verified.
- [55] Erlang structures programs with concurrent processes that share no memory and communicate by asynchronous messages. Source: Armstrong (2007). Quote: "These processes have no shared memory and communicate by asynchronous message passing." Verified.
- [56] Syme describes choosing OCaml as a starting point for F# and then making two-way interoperability with .NET central to its design. Source: Syme (2020). Quote: "the most significant design choice made for F# was that it be a .NET language." Verified.
- [57] Hickey describes Clojure as a Lisp dialect released in 2007 that combined pure functions over immutable data with constructs for managing state across threads. Source: Hickey (2020). Quote: "Initially designed in 2005 and released in 2007" Verified.
- [58] Clojure was intentionally designed to use another language's runtime and interoperate directly with its libraries. Source: Hickey (2020). Quote: "Clojure is intentionally hosted, in that it compiles to and runs on the runtime of another language" Verified.
- [59] The Python repository study analyzed change histories from 200 open-source Python projects and examined constructs such as lambdas and comprehensions. Source: Zampetti et al. (2022). Quote: "we analyze the change history of 200 popular open-source programs written in Python" Verified.
- [60] In the Python repository study, changes to the selected functional constructs had 1.15 times the odds of directly inducing fixes compared with other changes. Source: Zampetti et al. (2022). Quote: "changes to functional constructs have 1.15 higher odds than other changes to directly induce fixes" Verified.
- [61] The JavaScript study covered 91 GitHub repositories and measured whether bug-fixing commits removed uses of functional constructs. Source: Alves et al. (2022). Quote: "We mine 91 GitHub repositories ... We also measure the likelihood of bug-fixing commits removing uses of these concepts" Verified.
- [62] In the JavaScript repository analysis, the odds ratio for removing recursion in bug-fix versus other commits was 0.622. Source: Alves et al. (2022). Quote: "the odds ratio for recursion is 0.622" Verified.
- [63] Rosa and colleagues used developers’ explicit references to bug-introducing commits and manual filtering to benchmark SZZ variants. Source: Rosa et al. (2021). Quote: "developers explicitly reference the commit(s) that introduced a fixed bug" Verified.
- [64] Without filtering by issue date, one SZZ tool reached 72% recall on both benchmark sets while precision was 9% and 6%, respectively. Source: Rosa et al. (2021). Quote: "achieves a 72% recall on both ... with, however, a precision of 9% and 6%, respectively" Verified.
- [65] One Haskell prototype took 10 hours and 85 code lines, against 23 hours and 767 code lines for the Ada prototype in Hudak and Jones’s geometric region server comparison. Source: Hudak & Jones (1994). Quote: "(1) Haskell | 85 | 465 | 10 ... (2) Ada | 767 | 714 | 23" Verified.
- [66] In a randomized Java collection-operations study with 20 participants, responses for Stream API code were faster and had fewer errors than responses for loop-based code. Source: Mehlhorn & Hanenberg (2022). Quote: "positive effect on the response times. Furthermore, the usage of the Stream API caused significantly less errors." Verified.
- [67] In the 610 Java projects that used streams, Nostas and colleagues found that parallel processing was rare and map, filter and collect were common operations. Source: Nostas et al. (2021). Quote: "The most common used pipelines involve map, filter and collect operations." Verified.
- [68] A controlled experiment with 209 developers compared comprehension of selected Python functional constructs with procedural alternatives. Source: Zid et al. (2024). Quote: "a controlled experiment conducted with 209 developers to assess the understandability of given Pythonic functional constructs" Verified.
- [69] The Python comprehension paper reports that participants perceived procedural implementations as more readable than functional alternatives. Source: Zid et al. (2024). Quote: "code snippets relying on procedural implementations are considered more readable than their functional alternatives" Verified.
- [70] An exploratory study interviewed four expert Haskell programmers, finding they used strategies similar to those used in other languages while facing some Haskell-specific debugging challenges. Source: Huang et al. (2023a). Quote: "we interviewed four expert functional programmers to gain insight into how they debug in Haskell" Verified.
- [71] Flint and colleagues used eye tracking in classification and debugging tasks with 29 mostly student participants and reported lower confidence for functional code but no detected effect on debugging ability. Source: Flint et al. (2025). Quote: "Twenty-nine developers (primarily students) were recruited ... Changing the predominant paradigm did not affect the ability to debug the code, though developers did rate themselves with lower confidence for Functional code." Verified.
- [72] At Twente, a functional programming course was trialled four times with 30–40 participants each year before introduction throughout the first-year computer science curriculum in 1991/92. Source: Joosten et al. (1993). Quote: "conducted four times in experimental form, with 30 to 40 participants each year" Verified.
- [73] A first-year functional programming course trial gave students an early assignment using or modifying supplied code before they wrote their own code. Source: Chapman (2025). Quote: "students had to use code given to them, or slightly modify it" Verified.
- [74] Chapman reports that Create assignment scores improved by an average of 9% in the year following introduction of the earlier assignment, and describes the effect as small. Source: Chapman (2025). Quote: "improved by an average of 9% in the year after the intervention was implemented, a small effect" Verified.
- [75] In Vasconcelos’s Haskell averaging example, deferring arithmetic builds a chain of suspended calculations that grows with the input. Source: Vasconcelos (2020). Quote: "All computation is delayed until the last operation ... For length n this builds up thunks of size O(n)" Verified.
- [76] The Haskell designers describe how lazy evaluation can make object lifetimes difficult to predict and contribute to space leaks. Source: Hudak et al. (2007). Quote: "lazy evaluation also abstracts away from object lifetimes" Verified.
- [77] The Haskell designers recount adding a function that evaluates its first argument before returning its second argument to let programmers exercise more control over evaluation order. Source: Hudak et al. (2007). Quote: "the standard function seq, which evaluates its first argument, and then returns its second" Verified.
- [78] Runciman and Wakeling used heap profiling to guide changes that substantially reduced memory consumption in one lazy program. Source: Runciman & Wakeling (1993). Quote: "With the aid of profile graphs, one can make alterations to a functional program which dramatically reduce its space consumption." Verified.
- [79] A Haskell retrospective reports that heap profiling helped reduce peak space use from 1.3 megabytes to about 10K in one clausification program. Source: Hudak et al. (2007). Quote: "peak space requirements of a clausification program for propositional logic by two orders of magnitude, from 1.3 megabytes to only 10K" Verified.
- [80] In Lima and colleagues’ benchmarks, the relative energy efficiency of MVar and TMVar changed across benchmark configurations or tasks. Source: Lima et al. (2016). Quote: "choosing one data sharing primitive (MVar) over another (TMVar) can yield 60% energy savings. In another benchmark, the latter primitive can yield up to 30% energy savings over the former." Verified.
- [81] In one concurrent Haskell benchmark, the fastest variants also used the most energy, unlike the sequential benchmarks where higher performance tracked lower energy use. Source: Lima et al. (2016). Quote: "for one of our concurrent benchmarks, the variants with the best performance also exhibited the worst energy consumption" Verified.
- [82] Armstrong traces Erlang to an experiment adding concurrent processes to Prolog for a telephony application. Source: Armstrong (2003). Quote: "The language started as an experiment to add concurrent processes to Prolog" Verified.
- [83] For the Ericsson AXD301 system, Armstrong says the long-term reliability figure available to him lacked a documented derivation. Source: Armstrong (2003). Quote: "though how these figure had been obtained was not documented" Verified.
- [84] C# 3.0 shipped lambda expressions, expression trees and query expressions in November 2007. Source: Microsoft (2026h). Quote: "Released November 2007" Verified.
- [85] Across the 241 open-source Java projects studied, Mazinanian and colleagues identified 100,540 lambdas and observed an increasing adoption rate in aggregate. Source: Mazinanian et al. (2017). Quote: "We found an increasing trend in the adoption rate of lambdas." Verified.
- [86] Alqaimi and colleagues randomly sampled repositories classified by RepoReaper as engineered Java projects and reported lambda use in 11% of the sampled Java repositories. Source: Alqaimi et al. (2019). Quote: "We find that 11% of Java GitHub repositories use lambda expressions ... We then randomly sampled from these 51,392 repositories" Verified.
- [87] The Java study observed migration from anonymous classes to lambdas and from loops and conditionals to streams. Source: Mazinanian et al. (2017). Quote: "converting anonymous classes to lambdas, replacing loops/conditionals with streams" Verified.
- [88] A 34-project study found that stream use was pervasive in its sample and that parallel streams were uncommon. Source: Khatchadourian et al. (2020). Quote: "streams are pervasive, parallelization is not widely used" Verified.
- [89] The 2026 Stack Overflow survey’s language question asked about extensive development work in the previous year and allowed multiple selections. Source: Stack Overflow (2026). Quote: "Which programming, scripting, and markup languages have you done extensive development work in over the past year ... Select all that apply in each row." Verified.
- [90] The 2025 JetBrains survey reported Scala as the primary language for 2% of respondents and balanced responses by geography, employment, languages and JetBrains use. Source: Bedrina (2025). Quote: "used by only 2% of all developers as a primary language ... We balanced our responses by geography, employment, programming languages, and JetBrains product use." Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Alqaimi, A., Thongtanunam, P., & Treude, C. (2019). Automatically generating documentation for lambda expressions in Java. *16th International Conference on Mining Software Repositories*. https://arxiv.org/abs/1903.06348 [Medium trust. Preprint, read in large part.]
- Alves, F., Oliveira, D., Madeiral, F., & Castor, F. (2022). On the bug-proneness of structures inspired by functional programming in JavaScript projects. *arXiv*. https://arxiv.org/abs/2206.08849 [Solid source. Preprint, read in large part.]
- Armstrong, J. (2007). A History of Erlang. *Third ACM SIGPLAN History of Programming Languages Conference (HOPL-III)*. https://lfe.io/papers/%5B2007%5D%20Armstrong%20-%20HOPL%20III%20A%20History%20of%20Erlang.pdf [Medium trust. Peer-reviewed, read in large part.]
- Armstrong, J. (2003). Making reliable distributed systems in the presence of software errors. *The Royal Institute of Technology*. https://mirrors.aliyun.com/erlang/armstrong_thesis_2003.pdf [Medium trust. Read in large part.]
- Backus, J. (1978a). Can Programming Be Liberated from the von Neumann Style? A Functional Style and Its Algebra of Programs. *Communications of the ACM*. https://www.cs.cmu.edu/~crary/819-f09/Backus78.pdf [Medium trust. Peer-reviewed, read in large part.]
- Bedrina, O. (2025). The state of developer ecosystem 2025: Coding in the age of AI, new productivity metrics, and changing realities. *JetBrains Research*. https://blog.jetbrains.com/research/2025/10/state-of-developer-ecosystem-2025/ [Medium trust. Vendor page, read in large part.]
- Bird, R., & Wadler, P. (1988). Introduction to Functional Programming. *Prentice Hall International (UK) Ltd.*. https://usi-pl.github.io/doc/Bird_Wadler.%20Introduction%20to%20Functional%20Programming.1ed.pdf [Solid source. Book, read in large part.]
- Buckley, A. (n.d.). Preface to the Java SE 8 Edition. *Oracle*. https://docs.oracle.com/javase/specs/jls/se8/html/jls-0-preface8.html [Solid source. Documentation, read in full.]
- Chapman, P. (2025). Experiences of early assessment to teach functional programming. *Journal of Functional Programming*. https://www.cambridge.org/core/journals/journal-of-functional-programming/article/experiences-of-early-assessment-to-teach-functional-programming/667F18D3611D4A3A7C7C6A2A2FA4FB3C [Medium trust. Peer-reviewed, read in large part.]
- Church, A. (1936). An Unsolvable Problem of Elementary Number Theory. *American Journal of Mathematics*. https://www.cis.upenn.edu/~cis5110/Church-UnsolvableProblemElementary-1936.pdf [Solid source. Peer-reviewed, read in large part.]
- Cunningham, H. C. (2019). Functional Data Structures. *University of Mississippi*. https://john.cs.olemiss.edu/~hcc/csci555/notes/FPS03/FunctionalDS.pdf [Medium trust. Read in large part.]
- Flint, S. W., Chauhan, J., Mansoor, N., Sharif, B., & Dyer, R. (2025). An exploratory eye tracking study on how developers classify and debug Python code in different paradigms. *arXiv*. https://arxiv.org/abs/2511.07612 [Medium trust. Preprint, read in large part.]
- Hickey, R. (2020). A History of Clojure. *Proceedings of the ACM on Programming Languages, 4(HOPL), Article 71*. https://doi.org/10.1145/3386321 [Medium trust. Peer-reviewed, read in large part.]
- Huang, R. (., Pertseva, E., Coblenz, M., & Lerner, S. (2023a). How do Haskell programmers debug?. *PLATEAU: Annual Workshop at the Intersection of PL and HCI*. https://rlisahuang.com/files/plateau_23.pdf [Medium trust. Peer-reviewed, read in large part.]
- Hudak, P. (1989). Conception, Evolution, and Application of Functional Programming Languages. *ACM Computing Surveys*. https://courses.cs.washington.edu/courses/cse583/00wi/p359-hudak.pdf [Solid source. Peer-reviewed, read in large part.]
- Hudak, P., Hughes, J., Peyton Jones, S., & Wadler, P. (2007). A History of Haskell: Being Lazy With Class. *Third ACM SIGPLAN History of Programming Languages Conference (HOPL-III)*. https://simon.peytonjones.org/assets/pdfs/haskell-being-lazy-with-class.pdf [Medium trust. Peer-reviewed, read in large part.]
- Hudak, P., & Jones, M. P. (1994). Haskell vs. Ada vs. C++ vs. Awk vs. ...: An experiment in software prototyping productivity. *Yale University Department of Computer Science*. https://web.cecs.pdx.edu/~apt/cs457_2005/hudak-jones.pdf [Medium trust. Read in large part.]
- Hughes, J. (1990). Why Functional Programming Matters. *Research Topics in Functional Programming (D. Turner, Ed.), Addison-Wesley, pp. 17–42*. https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf [Medium trust. Peer-reviewed, read in large part.]
- Joosten, S., van den Berg, K., & van der Hoeven, G. (1993). Teaching functional programming to first-year students. *Journal of Functional Programming*. https://www.cambridge.org/core/services/aop-cambridge-core/content/view/041D6A27806B921685CD562695270216/S0956796800000599a.pdf/teaching_functional_programming_to_firstyear_students.pdf [Weak source. Peer-reviewed, read in large part.]
- Khatchadourian, R., Tang, Y., Bagherzadeh, M., & Ray, B. (2020). An empirical study on the use and misuse of Java 8 streams. *Fundamental Approaches to Software Engineering*. https://link.springer.com/chapter/10.1007/978-3-030-45234-6_5 [Solid source. Peer-reviewed, abstract only.]
- Landin, P. J. (1966). The Next 700 Programming Languages. *Communications of the ACM*. https://homepages.inf.ed.ac.uk/wadler/papers/papers-we-love/landin-next-700.pdf [Medium trust. Peer-reviewed, read in large part.]
- Launchbury, J., & Peyton Jones, S. L. (1994). Lazy Functional State Threads. *ACM Conference on Programming Languages Design and Implementation*. https://www.microsoft.com/en-us/research/wp-content/uploads/1994/06/lazy-functional-state-threads.pdf [Solid source. Peer-reviewed, read in large part.]
- Leijen, D. (2016). Algebraic Effects for Functional Programming: Type Directed Compilation of Row-typed Algebraic Effects. *Microsoft Research*. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/08/algeff-tr-2016-v2.pdf [Solid source. Read in large part.]
- Leijen, D. (2014). Koka: Programming with Row-polymorphic Effect Types. *Mathematically Structured Functional Programming 2014, EPTCS 153, 100–126*. https://arxiv.org/pdf/1406.2061 [Solid source. Peer-reviewed, read in large part.]
- Lima, L. G., Soares-Neto, F., Lieuthier, P., Castor, F., Melfe, G., & Fernandes, J. P. (2016). Haskell in green land: Analyzing the energy behavior of a purely functional language. *IEEE International Conference on Software Analysis, Evolution, and Reengineering*. https://green-haskell.github.io/papers/saner2016.pdf [Solid source. Peer-reviewed, read in large part.]
- MacQueen, D., Harper, R., & Reppy, J. (2020). The History of Standard ML. *Proceedings of the ACM on Programming Languages*. https://www.researchgate.net/publication/341464262_The_history_of_Standard_ML [Solid source. Peer-reviewed, read in large part.]
- Marlow, S. (2010a). Haskell 2010 Language Report. *Haskell.org*. https://www.haskell.org/onlinereport/haskell2010/haskellch7.html [Solid source. Documentation, read in large part.]
- Marlow, S. (2010b). Haskell 2010 Language Report: Preface. *Haskell.org*. https://www.haskell.org/onlinereport/haskell2010/haskellli2.html [Solid source. Documentation, read in full.]
- Mazinanian, D., Ketkar, A., Tsantalis, N., & Dig, D. (2017). Understanding the use of lambda expressions in Java. *Proceedings of the ACM on Programming Languages*. https://users.encs.concordia.ca/~nikolaos/publications/OOPSLA_2017.pdf [Solid source. Peer-reviewed, read in large part.]
- McCarthy, J. (1960). Recursive functions of symbolic expressions and their computation by machine, Part I. *Communications of the ACM, 3(4), 184–195*. https://www.cs.tufts.edu/comp/150FP/archive/john-mccarthy/recursive.pdf [Solid source. Peer-reviewed, read in large part.]
- McCarthy, J. (1979). History of Lisp. *History of Programming Languages*. https://www-formal.stanford.edu/jmc/history/lisp/lisp.html [Medium trust. Read in full.]
- Mehlhorn, N., & Hanenberg, S. (2022). Imperative versus declarative collection processing: An RCT on the understandability of traditional loops versus the Stream API in Java. *ICSE 2022*. https://conf.researchr.org/details/icse-2022/icse-2022-papers/54/Imperative-versus-Declarative-Collection-Processing-An-RCT-on-the-Understandability- [Medium trust. Peer-reviewed, abstract only.]
- Moggi, E. (1991). Notions of computation and monads. *Information and Computation*. https://www.cs.cmu.edu/afs/cs/user/crary/www/819-f09/Moggi91.pdf [Medium trust. Peer-reviewed, read in large part.]
- Nostas, J., Sandoval Alcocer, J. P., Costa, D. E., & Bergel, A. (2021). How do developers use the Java Stream API?. *Computational Science and Its Applications – ICCSA 2021, pp. 323–335*. https://bergel.eu/MyPapers/Nost21a-JavaStreamAPI.pdf [Solid source. Book, read in large part.]
- Okasaki, C. (1998). Persistence. *Cambridge University Press*. https://www.cambridge.org/core/books/abs/purely-functional-data-structures/persistence/BEB36D6BF24898A7CA3A188DA5C35ED1 [Medium trust. Book, abstract only.]
- Plasmeijer, R., & van Eekelen, M. (n.d.). Clean 2.2 Reference Manual: Uniqueness Typing. *Clean*. https://wiki.clean.cs.ru.nl/download/html_report/CleanRep.2.2_11.htm [Medium trust. Documentation, read in large part.]
- Rosa, G., Pascarella, L., Scalabrino, S., Tufano, R., Bavota, G., Lanza, M., & Oliveto, R. (2021). Evaluating SZZ implementations through a developer-informed oracle. *arXiv*. https://arxiv.org/abs/2102.03300 [Solid source. Preprint, read in large part.]
- Runciman, C., & Wakeling, D. (1993). Heap profiling of lazy functional programs. *Journal of Functional Programming*. https://www.cambridge.org/core/journals/journal-of-functional-programming/article/heap-profiling-of-lazy-functional-programs/E4DC90589F89A5A0C05CE41033780760 [Medium trust. Peer-reviewed, abstract only.]
- Rémy, D. (2001). Core ML. *Using, Understanding, and Unraveling the OCaml Language*. https://caml.inria.fr/pub/docs/u3-ocaml/ocaml-ml.html [Medium trust. Read in large part.]
- Steimann, F. (2025). Can Programming Be Liberated from the Functional Style?. *Proceedings of the 18th ACM SIGPLAN International Conference on Software Language Engineering*. https://www.fernuni-hagen.de/ps/forschung/veroeffentlichungen/steimann_canprogramming.shtml [Medium trust. Peer-reviewed, abstract only.]
- Sussman, G. J., & Steele, G. L. Jr. (1975). SCHEME: An Interpreter for Extended Lambda Calculus. *MIT Artificial Intelligence Laboratory*. https://research.scheme.org/lambda-papers/lambda-papers-scheme-report.html [Solid source. Read in full.]
- Syme, D. (2020). The Early History of F#. *Proceedings of the ACM on Programming Languages*. https://fsharp.org/history/hopl-final/hopl-fsharp.pdf [Medium trust. Peer-reviewed, read in large part.]
- Turner, D. A. (1981). The Semantic Elegance of Applicative Languages. *1981 Conference on Functional Programming Languages and Computer Architecture*. https://www.cs.kent.ac.uk/people/staff/dat/krc/paraffins-turner.pdf [Medium trust. Peer-reviewed, read in large part.]
- Turner, D. A. (2012). Some History of Functional Programming Languages. *TFP12*. https://www.cs.kent.ac.uk/people/staff/dat/tfp12/tfp12.pdf [Medium trust. Read in large part.]
- Turner, D. A. (1985). Miranda: A Non-Strict Functional Language with Polymorphic Types. *Functional Programming Languages and Computer Architecture*. https://www.cs.kent.ac.uk/people/staff/dat/miranda/nancypaper.pdf [Solid source. Book, read in large part.]
- Vasconcelos, P. (2020). Performance of Haskell programs. *University of Porto*. https://www.dcc.fc.up.pt/~pbv/aulas/linguagens/performance.html [Medium trust. Read in large part.]
- Wadler, P. (1995). Monads for functional programming. *Advanced Functional Programming*. https://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf [Medium trust. Book, read in large part.]
- Zampetti, F., Belias, F., Zid, C., Antoniol, G., & Di Penta, M. (2022). An empirical study on the fault-inducing effect of functional constructs in Python. *IEEE International Conference on Software Maintenance and Evolution*. https://mdipenta.github.io/files/icsme2022-func.pdf [Solid source. Peer-reviewed, read in large part.]
- Zid, C., Zampetti, F., Antoniol, G., & Di Penta, M. (2024). A study on the Pythonic functional constructs’ understandability. *2024 IEEE/ACM 46th International Conference on Software Engineering (ICSE 2024)*. https://mdipenta.github.io/files/ICSE24_funcExperiment.pdf [Solid source. Peer-reviewed, read in large part.]
- Microsoft (2026h). The history of C#. *Microsoft Learn*. https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history [Solid source. Documentation, read in large part.]
- OCaml (n.d.b). Mutability and Imperative Control Flow. *OCaml Documentation*. https://ocaml.org/docs/mutability-imperative-control-flow [Solid source. Documentation, read in large part.]
- OCaml (n.d.c). Values and Functions. *OCaml Documentation*. https://ocaml.org/docs/values-and-functions [Solid source. Documentation, read in large part.]
- OCaml (n.d.a). Basic Data Types and Pattern Matching. *OCaml Documentation*. https://ocaml.org/docs/basic-data-types [Solid source. Documentation, read in large part.]
- Stack Overflow (2026). Programming, scripting, and markup languages. *Stack Overflow Developer Survey*. https://survey.stackoverflow.co/2026/technology/data/languages [Medium trust. Read in large part.]
