Top "Anonymous-function" questions

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

Is it possible to specify an anonymous function's return type, in Scala?

I know you can create an anonymous function, and have the compiler infer its return type: val x = () => { System.…

scala anonymous-function static-typing
Location of parenthesis for auto-executing anonymous JavaScript functions?

I was recently comparing the current version of json2.js with the version I had in my project and noticed …

javascript syntax anonymous-function iife
C# ToDictionary lambda select index and element?

I have a string like string strn = "abcdefghjiklmnopqrstuvwxyz" and want a dictionary like: Dictionary<char,int>(){ {'a',0}, {'b',1}, {…

c# delegates lambda anonymous-function todictionary
How to call anonymous function in C#?

I am interested if it's possible using C# to write a code analogous to this Javascript one: var v = (function() { …

c# anonymous-function
Matlab - for loop in anonymus function

I'm quite new to matlab, but I know how to do both for loops and anonymous functions. Now I would …

matlab for-loop anonymous-function
How do I get the value from an anonymous expression?

For sake of simplicity, imagine the following code: I want to create a Foo: public class Foo { public string Bar { …

c# asp.net-mvc lambda anonymous-function
Is it possible to set a breakpoint in anonymous functions?

I quickly want to determine whether/when a set of events are triggered. Therefore I quickly assigned empty lambda's to …

c# visual-studio-2010 lambda anonymous-function
Anonymous function vs normal function

Just out of interest, are there any speed/functionality differences between function foo(bar) { alert("foo" + bar); } and var foo = …

javascript function anonymous-function
Anonymous functions in WordPress hooks

WordPress hooks can be used in two ways: using callback function name and appropriate function add_action( 'action_name', 'callback_…

php wordpress closures hook anonymous-function
Dynamically assigning function implementation in Python

I want to assign a function implementation dynamically. Let's start with the following: class Doer(object): def __init__(self): self.…

python anonymous-function anonymous-methods callable