Swift: Functions with optional tuple return values

If the tuple type to be returned from a function has the possibility of having “no value” we can place a  after the tuple to indicate that the return type may have a optional value. The entire tuple can be of optional type or individual values can be of optional type. (Int? , String) or (Int , String)?.

Leave a Reply