Languages Features Calendar About Lists Add Language
GitHub icon

Anonymous Functions

Anonymous Functions

Anonymous Functions are a language feature.

In computer programming, an anonymous function (function literal, lambda abstraction, or lambda expression) is a function definition that is not bound to an identifier.

Languages with Anonymous Functions include JavaScript, Coconut, HOPE

Example from JavaScript:

(() => console.log("hello world"))()

Example from Coconut:

x -> x ** 2

Example from HOPE:

lambda(x,y) => x + y

Article source

PLDB - Build the next great programming language 路 v2022 Docs Editor Acknowledgements Email GitHub