Inline Lamdas with LINQ in C# 13

Programming LINQ C#

Reduce verbosity by simplifying lambda expressions with inline syntax like:

var numbersLinq = Enumerable.Range(1, 10);
var squares = numbersLinq.Select(static x => x * x);

Console.WriteLine("squares of numbers from 1 to 10:");

foreach (var square in squares)
    Console.WriteLine(square);