Map (higher-order function): Difference between revisions

Content deleted Content added
SmackBot (talk | contribs)
m Date the maintenance tags or general fixes
Line 29:
* <code>fmap id = id -- identity</code>
* <code>fmap (f . g) = fmap f . fmap g -- composition</code>
 
 
==Mapping in .NET Procedural Languages==
The map function in .NET Procedural languages like C# or VB.NET (as of C# 2.0 and VB 8.0{{factFact|date=June 2008}}) is supported through the <code>select</code> extension method. Here's an example that combines the use of select() with the use of [[anonymous functions]], support for which was added to C# in version 3.0 (November 2007).
 
<source lang="csharp">