简体   繁体   中英

Swift- Concatenating Tuples

How would one join two tuples

(1,2,3) (4,5,6)

to form

(1,2,3,4,5,6)

Thanks!

You can't. Tuples aren't really like arrays—they're not even treated as sequences, really—so you can't join two together.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM