简体   繁体   English

Swift-Concatenating Tuples

[英]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. 元组不是真的像数组 - 它们甚至不被视为序列,真的 - 所以你不能把两个连在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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