Question
How is the first element of a pair tuple accessed?
Select an option. Your answer will be checked instantly.
Correct Answer: A. With _1
Explanation:
Tuple components use positional accessors _1, _2, and so on.
Pattern matching can also destructure tuples.
Leave a Reply