Swift: Functions with multiple return values

Swift functions can return multiple values in the form of tuples. The values returned can be accessed via dot syntax. As the names of return types are specified already in functions’s return type we don’t have to mention the names while returning the value from function.

Leave a Reply