Tuples as Return Values

Let’s say that we’re given a time interval and we need to figure out the equivalent number of minutes and seconds. In Objective-C my options are to return a struct that stored the minute and second value, or use a dictionary. Let’s look at how we can accomplish that in Swift.