With new c# 7 tuple syntax, is it possible to specify a lambda with a tuple as parameter and use unpacked values inside the lambda?
Example:
var list
Deconstructions in C# 7.0 support three forms:
(var x, var y) = e;), (x, y) = e;),foreach(var(x, y) in e) ...).Other contexts were considered, but likely have decreasing utility and we couldn't complete them in the C# 7.0 timeframe. Deconstruction in a let clause (let (x, y) = e ...) and in lambdas seem good candidates for future expansion.
The latter is being discussed in https://github.com/dotnet/csharplang/issues/258
Do voice your feedback and interest there, as it will help champion proposals.
More details on what was included in C# 7.0 deconstruction in the design doc.