Jump to content

Anonymous function

From Simple English Wikipedia, the free encyclopedia
Revision as of 13:47, 30 June 2011 by Luckas-bot (talk | changes) (r2.7.1) (robot Adding: bg:Анонимна функция)

In computing, an anonymous function is a function that has no name.

Example in Python

(lambda x: (lambda y: x * y))

The above code can be executed as a function:

>>>(lambda x: (lambda y: x * y))(3)(4)
12