Read, Write and Return Tuples in Swift

Just what is a tuple: “Tuples are a compound type in Swift, which basically means that they can hold multiple values.”

Creating tuples: “There are a few ways to create tuples.”

…likewise…

Reading a tuple: “There are several ways to read from a tuple.”

Returning a tuple from a function: “…when you have a function that specifies no return value, it actually returns an empty tuple.”

Get the specifics on Coding Explorer.