Local function vs Lambda C# 7.0
<p>I am looking at the new implementations in <a href="https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/" rel="noreferrer"><strong>C# 7.0</strong></a> and I find it interesting that they have implemented local functions but I cannot imagine a scenario where a local function would be preferred over a lambda expression, and what is the difference between the two.</p>

<p>I do understand that lambdas are <code>anonymous</code> functions meanwhile local functions are not, but I can't figure out a real world scenario, where local function has advantages over lambda expressions </p>

<p>Any example would be much appreciated. Thanks.</p>