Jump to content

Higher-order functions: Difference between revisions

m
→‎Lambdas: Whoops, result type is at the end.
(Added C# 1+, 2+, 3+ examples.)
m (→‎Lambdas: Whoops, result type is at the end.)
Line 347:
 
===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>T0T2</code> and has two parameters of types <code>T1T0</code> and <code>T2T1</code>.
 
{{works with|C sharp|C#|3+}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.