Mavnn's blog

Stuff from my brain

We're running Cloud Native .NET in Brighton, 26th-27th April 2018. High quality training for building .NET Core, distributed, production ready systems.

Get With It, C# Compiler!

Who doesn’t want to build recursive lambda functions?

Func upChain = move =>
                    if (move.ChainParentId != null)
                            m => m.Id == move.ChainParentId));
                    return move;

should work (according to me), but it complains that the second upChain is an unassigned local variable.

And I don’t feel like rolling my own y-combinator.