Tuples

suggest change

Introduction

A tuple type is a comma-separated list of types, enclosed in parentheses.

The types can be named, and those names refer to the individual values.

An element name consists of an identifier followed immediately by a colon (:).

A common use is a function return type: one tuple can carry several values.

Remarks

Tuples are value types. More detail is in the documentation: developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents