Written by
Amy
on
on
스위프트 Tuple
iOS and Swift Terminology - Tuple
Sources from The Swift Programming Language
What is a Tuple?
- A tuple type is a comma-separated list of types, enclosed in parentheses.
Functions with Multiple Return Values
- You can use a tuple type as the return type of a function to enable the function to return a single tuple containing multiple values. You can also name the elements of a tuple type and use those names to refer to the values of the individual elements. An element name consists of an identifier followed immediately by a colon (:).