Tuples are ordered lists of values. In Swift, you can group related elements together as a tuple,reducing the need to depend on complex types, objects, and immutable arrays. Listing 8-1 shows how you would declare a tuple for a rectangle.
Tuples are ordered lists of values. In Swift, you can group related elements together as a tuple,reducing the need to depend on complex types, objects, and immutable arrays. Listing 8-1 shows how you would declare a tuple for a rectangle.