Daily iOS
Swift

Tuples: uses and limits

When is it appropriate to use a tuple in Swift?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

A tuple suits short-lived values that don't need a name, like a function's multiple return values or a temporary grouping within one scope.

Share a question