What is tuple? How to create a tuple in swift?
Answer / Gautam Kumar Seth
A tuple is a data structure that groups multiple values of different types into a single compound value. Tuple in Swift can be created by simply separating the items with commas, for example: let myTuple = (1, "hello", true). To access individual elements, use their position like: myTuple.0, myTuple.1, myTuple.2.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to convert nsmutablearray to swift array in swift?
How do I create a swift file in xcode?
Is swift coding easy?
Which compiler is used in swift?
What are initializer in swift?
Is c++ similar to swift?
Mention some advantages of swift?
What is nil-coalescing operator?
What is swift programming language?
What is static function in swift?
What is forced unwrapping?
What is nsrange in swift?