Higher-order functions: Difference between revisions
Content added Content deleted
(Added C# 1+, 2+, 3+ examples.) |
m (→Lambdas: Whoops, result type is at the end.) |
||
Line 347: | Line 347: | ||
===Lambdas=== |
===Lambdas=== |
||
Lambda functions are syntactic sugar for anonymous functions. The <code>System</code> namespace also gained some common delegates, such as <code>Func<T0, T1, T2></code>, which refers to a function that returns a value of type <code> |
Lambda functions are syntactic sugar for anonymous functions. The <code>System</code> namespace also gained some common delegates, such as <code>Func<T0, T1, T2></code>, which refers to a function that returns a value of type <code>T2</code> and has two parameters of types <code>T0</code> and <code>T1</code>. |
||
{{works with|C sharp|C#|3+}} |
{{works with|C sharp|C#|3+}} |