swift-Meta-Group

Source: Internet
Author: User

Tuples (tuples) combine multiple values into a single composite value. A value within a tuple can make a discretionary type. is not required to be the same type. you can combine random-order types into a single tuple that can include all types. Just want you to think that you can create a tuple of type (int, int, int) or (String, Bool) or whatever combination you want.


Ganso definition

Let name = ("Jin", "Chen")

Ganso Read

Let (givenname,familyname) = Name;println ("\ (name.1)")  //output of the ancestor 1th, the following table from the beginning of the 0 println ("\ (givenName)")//jin

The ability to name a single element when defining the tuple:

Let Name3 = (givenname: "Jin", Familyname: "Chen") println ("\ (Name3.givenname)");


swift-Meta-Group

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.