Top "Anonymous-function" questions

Anonymous functions use a block of code as a value, defining it as an inline function without a name.

Javascript anonymous function call

I was reading JS sources from Twitter — on my way to improve my JS knowledge base, when I came across …

javascript anonymous-function
Using `$this` in an anonymous function in PHP pre 5.4.0

The PHP manual states It is not possible to use $this from anonymous function before PHP 5.4.0 on the anonymous functions …

php anonymous-function
Use keyword in functions - PHP

Possible Duplicate: In Php 5.3.0 what is the Function “Use” Identifier ? Should a sane programmer use it? I've been examining the …

php closures anonymous-function
Why and how do you use anonymous functions in PHP?

Anonymous functions are available from PHP 5.3. Should I use them or avoid them? If so, how? Edited; just found some …

php anonymous-function
php is_function() to determine if a variable is a function

I was pretty excited to read about anonymous functions in php, which let you declare a variable that is function …

php anonymous-function
Choose Python function to call based on a regex

Is it possible to put a function in a data structure, without first giving it a name with def? # This …

python anonymous-function lambda
Can I store RegExp and Function in JSON?

Given a block like this: var foo = {"regexp":/^http:\/\//, "fun":function(){}, } What is a proper way to store it in …

javascript regex json serialization anonymous-function
Anonymous recursive PHP functions

Is it possible to have a PHP function that is both recursive and anonymous? This is my attempt to get …

php recursion lambda closures anonymous-function
addEventListener firing multiple times for the same handle when passing in arguments with anonymous function

For some reason, the event listener is firing twice for each element when passing arguments into an anonymous function. I.…

javascript events javascript-events anonymous-function addeventlistener