tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

All LINQ methods implemented only by SelectMany

21 May 2014 1 mins .NET, C#, LINQ, Monad

Somewhere this week I read or maybe heard that you can implement all LINQ methods only by SelectMany. Somebody just mentioned along the way.

I read a lot of articles about monads and bind method and … But here I’m not interested in some “mathematical proof”. I just want to try it write myself. No helpers around. Pure C#. Just a brain training. Nothing else.

Enter my fun project SelectManyEnumerable. 😃 It’s not complete (yet) and I’ll be slowly adding more methods (as long as I will enjoy it 😎).

I suppose some methods will be highly suboptimal for .NET or for any real world usage respectively. But it’s not my aim to rewrite portion of LINQ. Just have fun and learn (hopefully) something along the way.

Profile Picture Jiří Činčura is .NET, C# and Firebird expert. He focuses on data and business layers, language constructs, parallelism, databases and performance. For almost two decades he contributes to open-source, i.e. FirebirdClient. He works as a senior software engineer for Microsoft. Frequent speaker and blogger at www.tabsoverspaces.com.