Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Anonymous Functions

Anonymous Functions

Anonymous Functions are a 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, Elixir, Coconut, HOPE, Jule

Example from JavaScript:
(() => console.log("hello world"))()
Example from Elixir:
fn -> IO.puts("hello world") end
Example from Coconut:
x -> x ** 2
Example from HOPE:
lambda(x,y) => x + y
Example from Jule:
let anonymous = fn() { outln("Anonymous Function") } anonymous()
while-loops-feature.html 路 anonymous-functions-feature.html 路 assignment-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 28 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub