Questions Concepts
GitHub icon

Anonymous Functions

Anonymous Functions - language feature

< >
Example from JavaScript, TypeScript:
(() => 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()

Languages with Anonymous Functions include JavaScript, TypeScript, Elixir, Coconut, HOPE, Jule

This question asks: Does the language support anonymous functions, aka Lambdas?

Read more about Anonymous Functions on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Traffic Traffic Today Day 305 Logout