tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

All LINQ methods implemented only by SelectMany

21 May 2014 .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 8-)).

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.