Here's another great post from DidItWith.Net, showing how using F# as a source of inspiration it's easy to create APIs that enable more declarative C# code to be written, resulting on clean and readble code like:
var a = ArrayEx.Create(20, x => x + 1);
ArrayEx.Iterate(a, (x, i) => Console.WriteLine("{0}: {1}", x, i));
No comments:
Post a Comment