Looking through the list of predefined (or, in Microsoft’s parlance, standard) query operators defined in C# 3.0, there is one that stands out as missing: the ‘map’ function. However, with the new query expression syntax, this is trivial to define: public static IEnumerable<T> Map<F,T>(Func<F,T> func, IEnumerable<F> source) { return from it in source select func(it); [...]
Pages
Tags
.net bind9 Books Broken C# C# code comparison Cool criticism Critique csharp Default Development DNS Firefox Functional programming Game GNOME Haskell horrid Java Links Linux massey Mathematics Me Mono music Odd Programming Reference Review self short silly snippet Thought thoughts Types Ubuntu Unicode Unix Work XMLCategories
Archives
