Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift- Concatenating Tuples

Tags:

ios

swift

ios8

How would one join two tuples

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

to form

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

Thanks!

like image 527
Andrew Avatar asked Apr 25 '26 23:04

Andrew


1 Answers

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

like image 87
mipadi Avatar answered Apr 28 '26 13:04

mipadi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!