fn0n
fn0n is a hypothetical term used in computer science education to denote an operator that composes a finite list of unary functions into a single function. It is not a widely recognized programming construct and is mainly used in thought experiments, textbooks, and online glossaries to illustrate composition concepts.
The name combines fn as an abbreviation for function, 0 to indicate a base case in a
Definition. Given unary functions f1, f2, ..., fn, the expression fn0n denotes the function x -> f1(f2(...(fn(x))...)). In
In pedagogy, fn0n helps show function composition, currying, and the idea that many simple steps can be
Status. Because fn0n is informal, there is no standard syntax, type system, or semantics. It appears mainly
See also: function composition, higher-order function, lambda calculus.