Swift#2 Tuples

  • Group multiple values into a single compound value.
  • Values can be any type and they do not have to be same type.
  • Extremely convenient as return types for functions that needs to return more than one value.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s