Swift

53 lessons

Achievements
Combined Shape@2x

The Certificate

avatar

Declaring a tuple

Developers can declare a tuple like any other variable or constant. A tuple literal is a list of values separated by commas between a pair of parentheses.

You can name the elements from a tuple and use those names to refer to them.