Structured Binding Declarations
This lesson sheds light on the modifications made to tuple functionality.
We'll cover the following...
Do you often work with tuples or pairs?
If not, then you should probably start looking into those handy types. Tuples enable you to bundle data ad-hoc with excellent library support instead of creating small custom types. The language features like structured binding make the code even more expressive and concise.
Consider a function that returns two results in a pair: ...