Top "Anonymous-function" questions

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

SortedSet<T> and anonymous IComparer<T> in the constructor is not working

How come anonymous functions works as arguments on methods, but not in constructor arguments? If I create a List<…

c# .net constructor anonymous-function
How to document anonymous functions (closure) with jsdoc-toolkit

I am trying to document my code using JSDoc-toolkit. My code starts by being wrapped with a self-executing anonymous function. …

javascript comments closures anonymous-function jsdoc
Javascript Anonymous Closure

I have read a lot about closures in Javascript What are those braces for?? I read on mozilla.org which …

javascript anonymous-function
How does variable scope work within the Mocha test framework?

I am a relative newbie to all things javascript, node.js, mocha etc. In my code I have a Unit …

node.js scope mocha anonymous-function
s-function in simulink MATLAB

I'm getting message Error in S-function 'project1_simu/S-Function': S-Function 'chiu_sfcn' does not exist whenever i run my simulink …

matlab anonymous-function simulink
PHP - self, static or $this in callback function

Is it possible to access classes/objects reffered as self, static and $this in anonymous callbacks in PHP? Just like …

php static callback anonymous-function self
Scala return statements in anonymous functions

Why does an explicit return statement (one that uses the return keyword) in an anonymous function return from the enclosing …

scala return closures anonymous-function
Can you name the parameters in a Func<T> type?

I have a "dispatch map" defined as such: private Dictionary<string, Func<DynamicEntity, DynamicEntity, IEnumerable<DynamicEntity>, …

c# anonymous-function
How do I make an "empty" anonymous function in MATLAB?

I use anonymous functions for diagnostic printing when debugging in MATLAB. E.g., debug_disp = @(str) disp(str); debug_disp(…

matlab anonymous-function
How do I convert an anonymous function to a symbolic function in MATLAB?

Say I have a anonymous function f = @(x) x^2 and I want to convert this to a symbolic function. Is …

function matlab anonymous-function symbolic-math