Under normal circumstances:
{A, B, C }={ 1, 2, 3 }.
But it cannot be {1, 2, 3} = {a, B, c }.
However, when the data is passed as a parameter, it can be right-aligned, for example:
Print ({Name, name} = nametup, {age, age})-> and
Print (nametup = {Name, name}, {age, age})->
Both methods can match nametup to the first parameter.
Modify: think about this problem in another way. In fact, the so-called "right-direction matching" is the first method, which is to first match the parameter to nametup and then cascade to {name, name. Therefore, the above statement is incorrect.
In particular, for example, if the parameter is record:
-Record (person, {name = {'lastname', 'firstname'}, Age, Sex }).
Printhw2 (# person {name = {_, name}, age = age} = someone)->
When matching the elements in a record, you must also match them right. I don't know if it's a syntax bug...
In the same way, we can understand that the Parameters match someone first, and then cascade to an anonymous {_, name} and age, the next step is the new record operation. So this is the right method, and my previous ideas are wrong.