anonymous function
In computer programming, an anonymous function (function literal, lambda function, or block) is a function definition that is not bound to an identifier. Anonymous functions are often arguments being passed to higher-order functions or used for constructing the result of a higher-order function that needs to return a function. If the function is only used once, or a limited number of times, an anonymous function may be syntactically lighter than using a named function. Anonymous functions are ubiquitous in functional programming languages and other languages with first-class functions, where they fulfil the same role for the function type as literals do for other data types. Anonymous functions originate in the work of Alonzo Church in his invention of the lambda calculus, in which all functions are anonymous, in 1936, before electronic computers. In several programming languages, anonymous functions are introduced using the keyword lambda, and anonymous functions are often referred to as lambdas or lambda abstractions. Anonymous functions have been a feature of programming languages since Lisp in 1958, and a growing number of modern programming languages support anonymous functions.
In computer programming, an anonymous function (function literal, lambda function, or block) is a function definition that is not bound to an identifier. Anonymous functions are often arguments being passed to higher-order functions or used for constructing the result of a higher-order function that needs to return a function. If the function is only used once, or a limited number of times, an anonymous function may be syntactically lighter than using a named function. Anonymous functions are ubiquitous in functional programming languages and other languages with first-class functions, where they fulfil the same role for the function type as literals do for other data types. Anonymous functions originate in the work of Alonzo Church in his invention of the lambda calculus, in which all functions are anonymous, in 1936, before electronic computers. In several programming languages, anonymous functions are introduced using the keyword lambda, and anonymous functions are often referred to as lambdas or lambda abstractions. Anonymous functions have been a feature of programming languages since Lisp in 1958, and a growing number of modern programming languages support anonymous functions. The names "lambda abstraction", "lambda function", and "lambda expression" refer to the notation of function abstraction in lambda calculus, where the usual function f(x) = M would be written (\lambda x. M) , and where M is an expression that uses x . Compare to the Python syntax of lambda x: M . The name "arrow function" refers to the mathematical "maps to" symbol, x \mapsto M . Compare to the JavaScript syntax of x => M . ==Uses== Anonymous functions can encapsulate functionality that does not require naming and is intended for short-term or localized use. Some notable examples include closures and currying. The use of anonymous functions is a matter of style. Using them is never the only way to solve a problem; each anonymous function could instead be defined as a named function and called by name. Anonymous functions often provide a briefer notation than defining named functions. In languages that do not permit the definition of named functions in local scopes, anonymous functions may provide encapsulation via localized scope, however the code in the body of such anonymous function may not be re-usable, or amenable to separate testing. Short/simple anonymous functions used in expressions may be easier to read and understand than separately defined named functions, though lacking a descriptive name may reduce code readability. In some programming languages, anonymous functions are commonly implemented for very specific purposes such as binding events to callbacks or instantiating the function for particular values, which may be more efficient in a Dynamic programming language, more readable, and less error-prone than calling a named function. The following examples are written in Python 3. a: list[str] = ["house", "car", "bike"] a.sort(key = lambda x: len(x)) print(a) prints ['car', 'bike', 'house'] The anonymous function in this example is the lambda expression: lambda x: len(x) The anonymous function accepts one argument, x , and returns the length of its argument, which is then used by the sort() method as the criteria for sorting. Basic syntax of a lambda function in Python is lambda arg1, arg2, arg3, ...: The expression returned by the lambda function can be assigned to a variable and used in the code at multiple places. from typing import Callable add: Callable[[int], int] = lambda a: a + a print(add(20)) prints 40 Another example would be sorting items in a list by the name of their class (in Python, everything has a class): a: list[int | str] = [10, "number", 11.2] a.sort(key=lambda x: x.__class__.__name__) print(a) prints [11.2, 10, 'number'] Note that 11.2 has class name " float ", 10 has class name " int ", and 'number' has class name " str ". The sorted order is " float ", " int ", then " str ". ===Closures=== Closures are functions evaluated in an environment containing bound variables. The following example binds the variable "threshold" within an anonymous function that compares input values to this threshold. def comp(threshold: int) -> Callable[[int], bool]: return lambda x: x This can be used as a sort of generator of comparison functions: func_a: Callable[[int], bool] = comp(10) func_b: Callable[[int], bool] = comp(20) print(func_a(5), func_a(8), func_a(13), func_a(21)) prints True True False False print(func_b(5), func_b(8), func_b(13), func_b(21)) prints True True True False It would be impractical to create a function for every possible comparison function and may be too inconvenient to keep the threshold around for further use. Regardless of the reason why a closure is used, the anonymous function is the entity that contains the functionality that does the comparing. ===Currying=== Currying transforms a function that takes multiple arguments into a sequence of functions each accepting a single argument. In this example, a function that performs division by any integer is transformed into one that performs division by a set integer. def divide(x: int, y: int) -> float: return x / y def divisor(d: int) -> Callable[[int], float]: return lambda x: divide(x, d) half: Callable[[int], float] = divisor(2) third: Callable[[int], float] = divisor(3) print(half(32), third(32)) prints 16.0 10.666666666666666 print(half(40), third(40)) prints 20.0 13.333333333333334 While the use of anonymous functions is perhaps not common with currying, it still can be used. In the above example, the function divisor generates functions with a specified divisor. The functions half and third curry the divide function with a fixed divisor. The divisor function also forms a closure by binding the variable d . ===Higher-order functions=== A higher-order function is a function that takes a function as an argument or returns one as a result. This technique is frequently employed to tailor the behavior of a generically defined function, such as a loop or recursion pattern. Anonymous functions are a convenient way to specify such function arguments. The following examples are in Python 3. ====Map==== The map function performs a function call on each element of a list. The following example squares every element in an array with an anonymous function. a: list[int] = [1, 2, 3, 4, 5, 6] print(list(map(lambda x: x * x, a))) prints [1, 4, 9, 16, 25, 36] The anonymous function takes an argument and returns its square. The above form is discouraged by the creators of the language, who maintain that the form presented below has the same meaning and is more aligned with the philosophy of the language: a: list[int] = [1, 2, 3, 4, 5, 6] print([x * x for x in a]) prints [1, 4, 9, 16, 25, 36] ====Filter==== The filter function returns all elements from a list that evaluate True when passed to a certain function. a: list[int] = [1, 2, 3, 4, 5, 6] print(list(filter(lambda x: x % 2 == 0, a))) prints [2, 4, 6] The anonymous function checks if the argument passed to it is even. The same as with map, the form below is considered more appropriate: a: list[int] = [1, 2, 3, 4, 5, 6] print([x for x in a if x % 2 == 0]) prints [2, 4, 6] ====Fold==== A fold function runs over all elements in a structure (for lists usually left-to-right, a "left fold", called reduce in Python), accumulating a value as it goes. This can be used to combine all elements of a structure into one value, for example: a: list[int] = [1, 2, 3, 4, 5] print(functools.reduce(lambda x, y: x * y, a)) prints 120 This performs \left( \left( \left( 1 \times 2 \right) \times 3 \right) \times 4 \right) \times 5 = 120. The anonymous function here is the multiplication of the two arguments. A fold does not necessarily produce a single scalar value; it can also generate structured results such as lists. Instead, both map and filter can be created using fold. In map, the value that is accumulated is a new list, containing the results of applying a function to each element of the original list. In filter, the value that is accumulated is a new list containing only those elements that match the given condition. ==List of languages== The following is a list of programming languages that support unnamed anonymous functions fully, or partly as some variant, or not at all. The following table illustrates several common patterns. Notably, languages like C, Pascal, and Object Pascal—which traditionally do not support anonymous functions—are all statically typed languages. However, statically typed languages can support anonymous functions. For example, the ML languages are statically typed and fundamentally include anonymous functions, and Delphi, a dialect of Object Pascal, has been extended to support anonymous functions, as has C++ (by the C++11 standard). Second, the languages that treat functions as first-class functions (Dylan, Haskell, JavaScript, Lisp, ML, Perl, Python, Ruby, Scheme) generally have anonymous function support so that functions can be defined and passed around as easily as other data types. ==See also== First-class function Lambda calculus definition ==References== ==External links== Anonymous Methods - When Should They Be Used? (blog about anonymous function in Delphi) Compiling Lambda Expressions: Scala vs. Java 8 php anonymous functions php anonymous functions Lambda functions in various programming languages
References
- Higher order functions · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Higher order functions." 2026-11-21. http://learnyouahaskell.com/higher-order-functions. Accessed 23 November 2026.
Chicago "Higher order functions." 2026-11-21. http://learnyouahaskell.com/higher-order-functions.
APA encyclopegia.org. (2026). Higher order functions. Retrieved November 23, 2026, from http://learnyouahaskell.com/higher-order-functions
- Clojure - Higher Order Functions · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Clojure - Higher Order Functions." 2022-01-13. https://clojure.org/guides/higher_order_functions. Accessed 23 November 2026.
Chicago "Clojure - Higher Order Functions." 2022-01-13. https://clojure.org/guides/higher_order_functions.
APA encyclopegia.org. (2022). Clojure - Higher Order Functions. Retrieved November 23, 2026, from https://clojure.org/guides/higher_order_functions
- Managed COBOL Reference · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Managed COBOL Reference." 2026-11-21. http://documentation.microfocus.com/help/topic/com.microfocus.eclipse.infocenter.visualcobol.vs/GUID-DA75663F-6357-4064-8112-C87E7457DE51.html. Accessed 23 November 2026.
Chicago "Managed COBOL Reference." 2026-11-21. http://documentation.microfocus.com/help/topic/com.microfocus.eclipse.infocenter.visualcobol.vs/GUID-DA75663F-6357-4064-8112-C87E7457DE51.html.
APA encyclopegia.org. (2026). Managed COBOL Reference. Retrieved November 23, 2026, from http://documentation.microfocus.com/help/topic/com.microfocus.eclipse.infocenter.visualcobol.vs/GUID-DA75663F-6357-4064-8112-C87E7457DE51.html
- Functions - D Programming Language · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Functions - D Programming Language." 2022-01-13. https://dlang.org/spec/function.html. Accessed 23 November 2026.
Chicago "Functions - D Programming Language." 2022-01-13. https://dlang.org/spec/function.html.
APA encyclopegia.org. (2022). Functions - D Programming Language. Retrieved November 23, 2026, from https://dlang.org/spec/function.html
- Anonymous Methods in Delphi - RAD Studio · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Anonymous Methods in Delphi - RAD Studio." 2020-11-23. http://docwiki.embarcadero.com/RADStudio/Sydney/en/Anonymous_Methods_in_Delphi#:~:text=As%20the%20name%20suggests,%20an,a%20parameter%20to%20a%20method.. Accessed 23 November 2026.
Chicago "Anonymous Methods in Delphi - RAD Studio." 2020-11-23. http://docwiki.embarcadero.com/RADStudio/Sydney/en/Anonymous_Methods_in_Delphi#:~:text=As%20the%20name%20suggests,%20an,a%20parameter%20to%20a%20method..
APA encyclopegia.org. (2020). Anonymous Methods in Delphi - RAD Studio. Retrieved November 23, 2026, from http://docwiki.embarcadero.com/RADStudio/Sydney/en/Anonymous_Methods_in_Delphi#:~:text=As%20the%20name%20suggests,%20an,a%20parameter%20to%20a%20method.
- Functions — Dylan Programming · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Functions — Dylan Programming." 2022-01-13. https://opendylan.org/books/dpg/func.html. Accessed 23 November 2026.
Chicago "Functions — Dylan Programming." 2022-01-13. https://opendylan.org/books/dpg/func.html.
APA encyclopegia.org. (2022). Functions — Dylan Programming. Retrieved November 23, 2026, from https://opendylan.org/books/dpg/func.html
- docs/syntax · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "docs/syntax." 2022-01-13. https://elm-lang.org/docs/syntax. Accessed 23 November 2026.
Chicago "docs/syntax." 2022-01-13. https://elm-lang.org/docs/syntax.
APA encyclopegia.org. (2022). docs/syntax. Retrieved November 23, 2026, from https://elm-lang.org/docs/syntax
- Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Computer Science, Springer Science & Business Media, p. 33, ISBN 9781848824348 , The Lambda calculus ... was introduced by Alonzo Church in the 1930s as a precise notation for a theory of anonymous functions Wikipedia revision 1378435763, retrieved 2026-11-22 · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Computer Science, Springer Science & Business Media, p. 33, ISBN 9781848824348 , The Lambda calculus ... was introduced by Alonzo Church in the 1930s as a precise notation for a theory of anonymous functions Wikipedia revision 1378435763, retrieved 2026-11-22." Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Comp. 2026-11-21. https://books.google.com/books?id=FPFsnzzebhQC&pg=PA33. Accessed 23 November 2026.
Chicago "Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Computer Science, Springer Science & Business Media, p. 33, ISBN 9781848824348 , The Lambda calculus ... was introduced by Alonzo Church in the 1930s as a precise notation for a theory of anonymous functions Wikipedia revision 1378435763, retrieved 2026-11-22." Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Comp. 2026-11-21. https://books.google.com/books?id=FPFsnzzebhQC&pg=PA33.
APA Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Comp. (2026). Fernandez, Maribel (2009), Models of Computation: An Introduction to Computability Theory , Undergraduate Topics in Computer Science, Springer Science & Business Media, p. 33, ISBN 9781848824348 , The Lambda calculus ... was introduced by Alonzo Church in the 1930s as a precise notation for a theory of anonymous functions Wikipedia revision 1378435763, retrieved 2026-11-22. Retrieved November 23, 2026, from https://books.google.com/books?id=FPFsnzzebhQC&pg=PA33
- Quotations - Factor Documentation · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Quotations - Factor Documentation." 2026-11-21. http://docs.factorcode.org/content/article-quotations.html. Accessed 23 November 2026.
Chicago "Quotations - Factor Documentation." 2026-11-21. http://docs.factorcode.org/content/article-quotations.html.
APA encyclopegia.org. (2026). Quotations - Factor Documentation. Retrieved November 23, 2026, from http://docs.factorcode.org/content/article-quotations.html
- Frink · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Frink." 2020-11-23. https://frinklang.org/. Accessed 23 November 2026.
Chicago "Frink." 2020-11-23. https://frinklang.org/.
APA encyclopegia.org. (2020). Frink. Retrieved November 23, 2026, from https://frinklang.org/
- Gosu Documentation · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Gosu Documentation." "Gosu Documentation" (PDF). 2026-11-21. http://gosu-lang.org/doc/pdf/gosuref.pdf. Accessed 23 November 2026.
Chicago "Gosu Documentation." "Gosu Documentation" (PDF). 2026-11-21. http://gosu-lang.org/doc/pdf/gosuref.pdf.
APA "Gosu Documentation" (PDF). (2026). Gosu Documentation. Retrieved November 23, 2026, from http://gosu-lang.org/doc/pdf/gosuref.pdf
- Groovy Documentation · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Groovy Documentation." 2026-11-21. https://web.archive.org/web/20120522213410/http://groovy.codehaus.org/Closures. Accessed 23 November 2026.
Chicago "Groovy Documentation." 2026-11-21. https://web.archive.org/web/20120522213410/http://groovy.codehaus.org/Closures.
APA encyclopegia.org. (2026). Groovy Documentation. Retrieved November 23, 2026, from https://web.archive.org/web/20120522213410/http://groovy.codehaus.org/Closures
- Anonymous function - HaskellWiki · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Anonymous function - HaskellWiki." 2022-01-13. https://wiki.haskell.org/Anonymous_function. Accessed 23 November 2026.
Chicago "Anonymous function - HaskellWiki." 2022-01-13. https://wiki.haskell.org/Anonymous_function.
APA encyclopegia.org. (2022). Anonymous function - HaskellWiki. Retrieved November 23, 2026, from https://wiki.haskell.org/Anonymous_function
- Lambda · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Lambda." 2022-01-13. https://haxe.org/manual/std-Lambda.html. Accessed 23 November 2026.
Chicago "Lambda." 2022-01-13. https://haxe.org/manual/std-Lambda.html.
APA encyclopegia.org. (2022). Lambda. Retrieved November 23, 2026, from https://haxe.org/manual/std-Lambda.html
- Functions - JavaScript | MDN · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Functions - JavaScript | MDN." 2022-01-13. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions. Accessed 23 November 2026.
Chicago "Functions - JavaScript | MDN." 2022-01-13. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions.
APA encyclopegia.org. (2022). Functions - JavaScript | MDN. Retrieved November 23, 2026, from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions
- Functions · The Julia Language · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Functions · The Julia Language." 2020-11-23. https://docs.julialang.org/en/v1/manual/functions/. Accessed 23 November 2026.
Chicago "Functions · The Julia Language." 2020-11-23. https://docs.julialang.org/en/v1/manual/functions/.
APA encyclopegia.org. (2020). Functions · The Julia Language. Retrieved November 23, 2026, from https://docs.julialang.org/en/v1/manual/functions/
- Arrow function expressions - JavaScript · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Arrow function expressions - JavaScript." 2026-11-21. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions. Accessed 23 November 2026.
Chicago "Arrow function expressions - JavaScript." 2026-11-21. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions.
APA encyclopegia.org. (2026). Arrow function expressions - JavaScript. Retrieved November 23, 2026, from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
- Higher-Order Functions and Lambdas - Kotlin Programming Language · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Higher-Order Functions and Lambdas - Kotlin Programming Language." 2020-11-23. https://kotlinlang.org/docs/reference/lambdas.html. Accessed 23 November 2026.
Chicago "Higher-Order Functions and Lambdas - Kotlin Programming Language." 2020-11-23. https://kotlinlang.org/docs/reference/lambdas.html.
APA encyclopegia.org. (2020). Higher-Order Functions and Lambdas - Kotlin Programming Language. Retrieved November 23, 2026, from https://kotlinlang.org/docs/reference/lambdas.html
- Programming in Lua : 6 · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Programming in Lua : 6." 2020-11-23. https://www.lua.org/pil/6.html. Accessed 23 November 2026.
Chicago "Programming in Lua : 6." 2020-11-23. https://www.lua.org/pil/6.html.
APA encyclopegia.org. (2020). Programming in Lua : 6. Retrieved November 23, 2026, from https://www.lua.org/pil/6.html
- Maple Programming: 1.6: Anonymous functions and expressions - Application Center · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Maple Programming: 1.6: Anonymous functions and expressions - Application Center." "Maple Programming: 1. 2020-11-23. https://www.maplesoft.com/applications/view.aspx?sid=1522&view=html. Accessed 23 November 2026.
Chicago "Maple Programming: 1.6: Anonymous functions and expressions - Application Center." "Maple Programming: 1. 2020-11-23. https://www.maplesoft.com/applications/view.aspx?sid=1522&view=html.
APA "Maple Programming: 1. (2020). Maple Programming: 1.6: Anonymous functions and expressions - Application Center. Retrieved November 23, 2026, from https://www.maplesoft.com/applications/view.aspx?sid=1522&view=html
- Anonymous Functions - MATLAB & Simulink · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Anonymous Functions - MATLAB & Simulink." 2022-01-13. https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html. Accessed 23 November 2026.
Chicago "Anonymous Functions - MATLAB & Simulink." 2022-01-13. https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html.
APA encyclopegia.org. (2022). Anonymous Functions - MATLAB & Simulink. Retrieved November 23, 2026, from https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html
- Maxima 5.17.1 Manual: 39. Function Definition · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Maxima 5.17.1 Manual: 39. Function Definition." "Maxima 5. 2020-11-23. http://maths.cnam.fr/Membres/wilk/MathMax/help/Maxima/maxima_39.html#:~:text=Maxima%20simplifies%20funmake%20%27s%20return%20value.&text=Defines%20and%20returns%20a%20lambda,of%20the%20function%20is%20expr_n%20.. Accessed 23 November 2026.
Chicago "Maxima 5.17.1 Manual: 39. Function Definition." "Maxima 5. 2020-11-23. http://maths.cnam.fr/Membres/wilk/MathMax/help/Maxima/maxima_39.html#:~:text=Maxima%20simplifies%20funmake%20%27s%20return%20value.&text=Defines%20and%20returns%20a%20lambda,of%20the%20function%20is%20expr_n%20..
APA "Maxima 5. (2020). Maxima 5.17.1 Manual: 39. Function Definition. Retrieved November 23, 2026, from http://maths.cnam.fr/Membres/wilk/MathMax/help/Maxima/maxima_39.html#:~:text=Maxima%20simplifies%20funmake%20%27s%20return%20value.&text=Defines%20and%20returns%20a%20lambda,of%20the%20function%20is%20expr_n%20.
- Code Examples – OCaml · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Code Examples – OCaml." 2020-11-23. https://ocaml.org/learn/taste.html. Accessed 23 November 2026.
Chicago "Code Examples – OCaml." 2020-11-23. https://ocaml.org/learn/taste.html.
APA encyclopegia.org. (2020). Code Examples – OCaml. Retrieved November 23, 2026, from https://ocaml.org/learn/taste.html
- GNU Octave: Anonymous Functions · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "GNU Octave: Anonymous Functions." 2020-11-23. https://octave.org/doc/v4.0.1/Anonymous-Functions.html. Accessed 23 November 2026.
Chicago "GNU Octave: Anonymous Functions." 2020-11-23. https://octave.org/doc/v4.0.1/Anonymous-Functions.html.
APA encyclopegia.org. (2020). GNU Octave: Anonymous Functions. Retrieved November 23, 2026, from https://octave.org/doc/v4.0.1/Anonymous-Functions.html
- Function Literals · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Function Literals." 2026-11-21. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-Defined_Functions_and_Modules#Function_Literals. Accessed 23 November 2026.
Chicago "Function Literals." 2026-11-21. https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-Defined_Functions_and_Modules#Function_Literals.
APA encyclopegia.org. (2026). Function Literals. Retrieved November 23, 2026, from https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-Defined_Functions_and_Modules#Function_Literals
- CSE 341: Programming Languages — Closures, Map, Fold, Curry · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "CSE 341: Programming Languages — Closures, Map, Fold, Curry." "CSE 341: Programming Languages — Closures, Map, Fold, Curry" (PDF). 2026-11-21. https://courses.cs.washington.edu/education/courses/341/07sp/slides/lec09.pdf. Accessed 23 November 2026.
Chicago "CSE 341: Programming Languages — Closures, Map, Fold, Curry." "CSE 341: Programming Languages — Closures, Map, Fold, Curry" (PDF). 2026-11-21. https://courses.cs.washington.edu/education/courses/341/07sp/slides/lec09.pdf.
APA "CSE 341: Programming Languages — Closures, Map, Fold, Curry" (PDF). (2026). CSE 341: Programming Languages — Closures, Map, Fold, Curry. Retrieved November 23, 2026, from https://courses.cs.washington.edu/education/courses/341/07sp/slides/lec09.pdf
- PHP: Anonymous functions - Manual · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "PHP: Anonymous functions - Manual." 2020-11-23. https://www.php.net/manual/en/functions.anonymous.php. Accessed 23 November 2026.
Chicago "PHP: Anonymous functions - Manual." 2020-11-23. https://www.php.net/manual/en/functions.anonymous.php.
APA encyclopegia.org. (2020). PHP: Anonymous functions - Manual. Retrieved November 23, 2026, from https://www.php.net/manual/en/functions.anonymous.php
- 4.4 Functions: lambda · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "4.4 Functions: lambda." "4. 2020-11-23. https://docs.racket-lang.org/guide/lambda.html. Accessed 23 November 2026.
Chicago "4.4 Functions: lambda." "4. 2020-11-23. https://docs.racket-lang.org/guide/lambda.html.
APA "4. (2020). 4.4 Functions: lambda. Retrieved November 23, 2026, from https://docs.racket-lang.org/guide/lambda.html
- Functions · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Functions." 2022-01-13. https://docs.raku.org/language/functions. Accessed 23 November 2026.
Chicago "Functions." 2022-01-13. https://docs.raku.org/language/functions.
APA encyclopegia.org. (2022). Functions. Retrieved November 23, 2026, from https://docs.raku.org/language/functions
- Closures: Anonymous Functions that Can Capture Their Environment - The Rust Programming Language · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Closures: Anonymous Functions that Can Capture Their Environment - The Rust Programming Language." 2022-01-13. https://doc.rust-lang.org/book/ch13-01-closures.html. Accessed 23 November 2026.
Chicago "Closures: Anonymous Functions that Can Capture Their Environment - The Rust Programming Language." 2022-01-13. https://doc.rust-lang.org/book/ch13-01-closures.html.
APA encyclopegia.org. (2022). Closures: Anonymous Functions that Can Capture Their Environment - The Rust Programming Language. Retrieved November 23, 2026, from https://doc.rust-lang.org/book/ch13-01-closures.html
- Anonymous Functions · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Anonymous Functions." 2022-01-13. https://docs.scala-lang.org/overviews/scala-book/anonymous-functions.html. Accessed 23 November 2026.
Chicago "Anonymous Functions." 2022-01-13. https://docs.scala-lang.org/overviews/scala-book/anonymous-functions.html.
APA encyclopegia.org. (2022). Anonymous Functions. Retrieved November 23, 2026, from https://docs.scala-lang.org/overviews/scala-book/anonymous-functions.html
- Recitation 3: Higher order functions · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Recitation 3: Higher order functions." 2022-01-13. https://www.cs.cornell.edu/courses/cs312/2008sp/recitations/rec03.html. Accessed 23 November 2026.
Chicago "Recitation 3: Higher order functions." 2022-01-13. https://www.cs.cornell.edu/courses/cs312/2008sp/recitations/rec03.html.
APA encyclopegia.org. (2022). Recitation 3: Higher order functions. Retrieved November 23, 2026, from https://www.cs.cornell.edu/courses/cs312/2008sp/recitations/rec03.html
- Documentation - Everyday Types · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Documentation - Everyday Types." 2022-01-13. https://www.typescriptlang.org/docs/handbook/2/everyday-types.html. Accessed 23 November 2026.
Chicago "Documentation - Everyday Types." 2022-01-13. https://www.typescriptlang.org/docs/handbook/2/everyday-types.html.
APA encyclopegia.org. (2022). Documentation - Everyday Types. Retrieved November 23, 2026, from https://www.typescriptlang.org/docs/handbook/2/everyday-types.html
- Access Types · retrieved 2024-06-26 · rev 1378435763
Cite this reference
MLA "Access Types." 2024-06-26. https://www.adaic.org/resources/add_content/standards/05rm/html/RM-3-10.html#S0082. Accessed 23 November 2026.
Chicago "Access Types." 2024-06-26. https://www.adaic.org/resources/add_content/standards/05rm/html/RM-3-10.html#S0082.
APA encyclopegia.org. (2024). Access Types. Retrieved November 23, 2026, from https://www.adaic.org/resources/add_content/standards/05rm/html/RM-3-10.html#S0082
- Function Type - Typst Documentation · retrieved 2024-09-09 · rev 1378435763
Cite this reference
MLA "Function Type - Typst Documentation." 2024-09-09. https://typst.app/docs/reference/foundations/function/#unnamed. Accessed 23 November 2026.
Chicago "Function Type - Typst Documentation." 2024-09-09. https://typst.app/docs/reference/foundations/function/#unnamed.
APA encyclopegia.org. (2024). Function Type - Typst Documentation. Retrieved November 23, 2026, from https://typst.app/docs/reference/foundations/function/#unnamed
- Lambda Expressions - Visual Basic · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Lambda Expressions - Visual Basic." KathleenDollard (15 September 2021). 2022-01-13. https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions. Accessed 23 November 2026.
Chicago "Lambda Expressions - Visual Basic." KathleenDollard (15 September 2021). 2022-01-13. https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions.
APA KathleenDollard (15 September 2021). (2022). Lambda Expressions - Visual Basic. Retrieved November 23, 2026, from https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/procedures/lambda-expressions
- Language Reference/Terms/Anonymous Predicates - wiki.visual-prolog.com · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Language Reference/Terms/Anonymous Predicates - wiki.visual-prolog.com." "Language Reference/Terms/Anonymous Predicates - wiki. 2022-01-13. https://wiki.visual-prolog.com/index.php?title=Language_Reference/Terms/Anonymous_Predicates. Accessed 23 November 2026.
Chicago "Language Reference/Terms/Anonymous Predicates - wiki.visual-prolog.com." "Language Reference/Terms/Anonymous Predicates - wiki. 2022-01-13. https://wiki.visual-prolog.com/index.php?title=Language_Reference/Terms/Anonymous_Predicates.
APA "Language Reference/Terms/Anonymous Predicates - wiki. (2022). Language Reference/Terms/Anonymous Predicates - wiki.visual-prolog.com. Retrieved November 23, 2026, from https://wiki.visual-prolog.com/index.php?title=Language_Reference/Terms/Anonymous_Predicates
- Lambdas, Closures and everything in between · Issue #1048 · ziglang/zig · retrieved 2023-08-20 · rev 1378435763
Cite this reference
MLA "Lambdas, Closures and everything in between · Issue #1048 · ziglang/zig." 2023-08-20. https://github.com/ziglang/zig/issues/1048. Accessed 23 November 2026.
Chicago "Lambdas, Closures and everything in between · Issue #1048 · ziglang/zig." 2023-08-20. https://github.com/ziglang/zig/issues/1048.
APA encyclopegia.org. (2023). Lambdas, Closures and everything in between · Issue #1048 · ziglang/zig. Retrieved November 23, 2026, from https://github.com/ziglang/zig/issues/1048
- Bash lambda · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Bash lambda." 2026-11-21. https://github.com/spencertipping/bash-lambda. Accessed 23 November 2026.
Chicago "Bash lambda." 2026-11-21. https://github.com/spencertipping/bash-lambda.
APA encyclopegia.org. (2026). Bash lambda. Retrieved November 23, 2026, from https://github.com/spencertipping/bash-lambda
- Lambda expressions - C# reference · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Lambda expressions - C# reference." BillWagner. 2020-11-23. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions. Accessed 23 November 2026.
Chicago "Lambda expressions - C# reference." BillWagner. 2020-11-23. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions.
APA BillWagner. (2020). Lambda expressions - C# reference. Retrieved November 23, 2026, from https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions
- Closure support · retrieved 2014-01-04 · rev 1378435763
Cite this reference
MLA "Closure support." 2014-01-04. https://web.archive.org/web/20140106031957/http://www.getrailo.org/index.cfm/whats-up/railo-40-beta-released/features/closures/. Accessed 23 November 2026.
Chicago "Closure support." 2014-01-04. https://web.archive.org/web/20140106031957/http://www.getrailo.org/index.cfm/whats-up/railo-40-beta-released/features/closures/.
APA encyclopegia.org. (2014). Closure support. Retrieved November 23, 2026, from https://web.archive.org/web/20140106031957/http://www.getrailo.org/index.cfm/whats-up/railo-40-beta-released/features/closures/
- Whats new in ColdFusion 10 · retrieved 2014-01-04 · rev 1378435763
Cite this reference
MLA "Whats new in ColdFusion 10." 2014-01-04. https://web.archive.org/web/20140106032853/https://learn.adobe.com/wiki/display/coldfusionen/Whats+new+in+ColdFusion+10. Accessed 23 November 2026.
Chicago "Whats new in ColdFusion 10." 2014-01-04. https://web.archive.org/web/20140106032853/https://learn.adobe.com/wiki/display/coldfusionen/Whats+new+in+ColdFusion+10.
APA encyclopegia.org. (2014). Whats new in ColdFusion 10. Retrieved November 23, 2026, from https://web.archive.org/web/20140106032853/https://learn.adobe.com/wiki/display/coldfusionen/Whats+new+in+ColdFusion+10
- A tour of the Dart language · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "A tour of the Dart language." 2020-11-23. https://dart.dev/guides/language/language-tour. Accessed 23 November 2026.
Chicago "A tour of the Dart language." 2020-11-23. https://dart.dev/guides/language/language-tour.
APA encyclopegia.org. (2020). A tour of the Dart language. Retrieved November 23, 2026, from https://dart.dev/guides/language/language-tour
- Erlang/Elixir Syntax: A Crash Course · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Erlang/Elixir Syntax: A Crash Course." 2020-11-23. https://elixir-lang.org/crash-course.html. Accessed 23 November 2026.
Chicago "Erlang/Elixir Syntax: A Crash Course." 2020-11-23. https://elixir-lang.org/crash-course.html.
APA encyclopegia.org. (2020). Erlang/Elixir Syntax: A Crash Course. Retrieved November 23, 2026, from https://elixir-lang.org/crash-course.html
- Understanding Ruby Blocks, Procs and Lambdas · retrieved 2014-05-29 · rev 1378435763
Cite this reference
MLA "Understanding Ruby Blocks, Procs and Lambdas." Sosinski, Robert (2008-12-21). 2014-05-29. https://web.archive.org/web/20140531123646/http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/. Accessed 23 November 2026.
Chicago "Understanding Ruby Blocks, Procs and Lambdas." Sosinski, Robert (2008-12-21). 2014-05-29. https://web.archive.org/web/20140531123646/http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/.
APA Sosinski, Robert (2008-12-21). (2014). Understanding Ruby Blocks, Procs and Lambdas. Retrieved November 23, 2026, from https://web.archive.org/web/20140531123646/http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
- Erlang -- Funs · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Erlang -- Funs." 2020-11-23. https://erlang.org/doc/programming_examples/funs.html. Accessed 23 November 2026.
Chicago "Erlang -- Funs." 2020-11-23. https://erlang.org/doc/programming_examples/funs.html.
APA encyclopegia.org. (2020). Erlang -- Funs. Retrieved November 23, 2026, from https://erlang.org/doc/programming_examples/funs.html
- Lambda Expressions: The fun Keyword - F# · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Lambda Expressions: The fun Keyword - F#." cartermp. 2020-11-23. https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword. Accessed 23 November 2026.
Chicago "Lambda Expressions: The fun Keyword - F#." cartermp. 2020-11-23. https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword.
APA cartermp. (2020). Lambda Expressions: The fun Keyword - F#. Retrieved November 23, 2026, from https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword
- Anonymous Functions in GoLang · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Anonymous Functions in GoLang." 2020-11-23. https://golangdocs.com/anonymous-functions-in-golang. Accessed 23 November 2026.
Chicago "Anonymous Functions in GoLang." 2020-11-23. https://golangdocs.com/anonymous-functions-in-golang.
APA encyclopegia.org. (2020). Anonymous Functions in GoLang. Retrieved November 23, 2026, from https://golangdocs.com/anonymous-functions-in-golang
- perlsub - Perl subroutines - Perldoc Browser · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "perlsub - Perl subroutines - Perldoc Browser." 2020-11-23. https://perldoc.perl.org/perlsub. Accessed 23 November 2026.
Chicago "perlsub - Perl subroutines - Perldoc Browser." 2020-11-23. https://perldoc.perl.org/perlsub.
APA encyclopegia.org. (2020). perlsub - Perl subroutines - Perldoc Browser. Retrieved November 23, 2026, from https://perldoc.perl.org/perlsub
- 6. Expressions § 6.14. Lambdas · retrieved 2026-08-31 · rev 1378435763
Cite this reference
MLA "6. Expressions § 6.14. Lambdas." "6. 2026-08-31. https://docs.python.org/3.14/reference/expressions.html#lambda. Accessed 23 November 2026.
Chicago "6. Expressions § 6.14. Lambdas." "6. 2026-08-31. https://docs.python.org/3.14/reference/expressions.html#lambda.
APA "6. (2026). 6. Expressions § 6.14. Lambdas. Retrieved November 23, 2026, from https://docs.python.org/3.14/reference/expressions.html#lambda
- Projects/Vala/Tutorial - GNOME Wiki! · retrieved 2020-11-23 · rev 1378435763
Cite this reference
MLA "Projects/Vala/Tutorial - GNOME Wiki!." a b "Projects/Vala/Tutorial - GNOME Wiki!". 2020-11-23. https://wiki.gnome.org/Projects/Vala/Tutorial. Accessed 23 November 2026.
Chicago "Projects/Vala/Tutorial - GNOME Wiki!." a b "Projects/Vala/Tutorial - GNOME Wiki!". 2020-11-23. https://wiki.gnome.org/Projects/Vala/Tutorial.
APA a b "Projects/Vala/Tutorial - GNOME Wiki!". (2020). Projects/Vala/Tutorial - GNOME Wiki!. Retrieved November 23, 2026, from https://wiki.gnome.org/Projects/Vala/Tutorial
- Pure Anonymous Function: Elementary Introduction to the Wolfram Language · retrieved 2022-01-13 · rev 1378435763
Cite this reference
MLA "Pure Anonymous Function: Elementary Introduction to the Wolfram Language." 2022-01-13. https://www.wolfram.com/language/elementary-introduction/2nd-ed/26-pure-anonymous-functions.html.en. Accessed 23 November 2026.
Chicago "Pure Anonymous Function: Elementary Introduction to the Wolfram Language." 2022-01-13. https://www.wolfram.com/language/elementary-introduction/2nd-ed/26-pure-anonymous-functions.html.en.
APA encyclopegia.org. (2022). Pure Anonymous Function: Elementary Introduction to the Wolfram Language. Retrieved November 23, 2026, from https://www.wolfram.com/language/elementary-introduction/2nd-ed/26-pure-anonymous-functions.html.en
- Closures — The Swift Programming Language (Swift 5.5) · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Closures — The Swift Programming Language (Swift 5.5)." "Closures — The Swift Programming Language (Swift 5. 2026-11-21. https://docs.swift.org/swift-book/LanguageGuide/Closures.html. Accessed 23 November 2026.
Chicago "Closures — The Swift Programming Language (Swift 5.5)." "Closures — The Swift Programming Language (Swift 5. 2026-11-21. https://docs.swift.org/swift-book/LanguageGuide/Closures.html.
APA "Closures — The Swift Programming Language (Swift 5. (2026). Closures — The Swift Programming Language (Swift 5.5). Retrieved November 23, 2026, from https://docs.swift.org/swift-book/LanguageGuide/Closures.html
- LAMBDA: The ultimate Excel worksheet function · retrieved 2021-03-29 · rev 1378435763
Cite this reference
MLA "LAMBDA: The ultimate Excel worksheet function." 2021-03-29. https://www.microsoft.com/en-us/research/blog/lambda-the-ultimatae-excel-worksheet-function/. Accessed 23 November 2026.
Chicago "LAMBDA: The ultimate Excel worksheet function." 2021-03-29. https://www.microsoft.com/en-us/research/blog/lambda-the-ultimatae-excel-worksheet-function/.
APA encyclopegia.org. (2021). LAMBDA: The ultimate Excel worksheet function. Retrieved November 23, 2026, from https://www.microsoft.com/en-us/research/blog/lambda-the-ultimatae-excel-worksheet-function/
- Nim Manual · retrieved 2026-11-21 · rev 1378435763
Cite this reference
MLA "Nim Manual." 2026-11-21. https://nim-lang.github.io/Nim/manual.html#procedures-anonymous-procs. Accessed 23 November 2026.
Chicago "Nim Manual." 2026-11-21. https://nim-lang.github.io/Nim/manual.html#procedures-anonymous-procs.
APA encyclopegia.org. (2026). Nim Manual. Retrieved November 23, 2026, from https://nim-lang.github.io/Nim/manual.html#procedures-anonymous-procs
- anonymous function · retrieved 2026-11-23 · rev 1378435763
Cite this reference
MLA "anonymous function." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1378435763. Accessed 23 November 2026.
Chicago "anonymous function." 2026-11-23. https://en.wikipedia.org/w/index.php?oldid=1378435763.
APA encyclopegia.org. (2026). anonymous function. Retrieved November 23, 2026, from https://en.wikipedia.org/w/index.php?oldid=1378435763
Cite this article
MLA
"anonymous function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/anonymous-function. Accessed 23 November 2026.
Chicago
"anonymous function." encyclopegia.org. Accessed November 23, 2026. https://encyclopegia.org/wiki/anonymous-function.
APA
encyclopegia.org. (2026). anonymous function. Retrieved November 23, 2026, from https://encyclopegia.org/wiki/anonymous-function
Accessed November 23, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| year mentioned | 1936 | article body |
| year mentioned | 1958 | article body |