0
Tuple Types
Hi, quick question: When it comes to types in swift, for iterables there is a “full” version, so for arrays you can have Array<String>, for dictionaries Dictionary<Int,String> and so on. I was wondering if there is an equivalent for tuples, and if so what is it (or is it just Tuple<types>). Thanks in advance
4 Respostas
+ 1
In Swift, a tuple is a group of different values. And, each value inside a tuple can be of different data types.
+ 1
As I mentioned, They accept different types, And as far as I know you cannot use Tuple<types>
0
Not quite my question
0
As can arrays and dictionaries (hence the Any keyword)