Note that since we used let
in the first case, we created an immutable, or unchangeable tuple, whereas the latter case is a mutable tuple since we used var
.
Now that we have a compound value, how do we access it? You have two options:
By index
Note that since we used let
in the first case, we created an immutable, or unchangeable tuple, whereas the latter case is a mutable tuple since we used var
.
Now that we have a compound value, how do we access it? You have two options:
By index