You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of the tuple examples in the compound data types section (beginner), the docs show that
let x = (1,2,3);let y = (2,2,4);
are not equivalent tuples by saying the following:
This will print no, because some of the values aren't equal.
To me, this implies that the following WOULD be equivalent:
let x = (1,2,3);let y = (2,1,3);
because all of the values are the same, but the compiler says the tuples are different. Perhaps add a note about value ordering being important to tuple equivalency or show another example.
The text was updated successfully, but these errors were encountered:
In one of the tuple examples in the compound data types section (beginner), the docs show that
are not equivalent tuples by saying the following:
To me, this implies that the following WOULD be equivalent:
because all of the values are the same, but the compiler says the tuples are different. Perhaps add a note about value ordering being important to tuple equivalency or show another example.
The text was updated successfully, but these errors were encountered: