0

Swift, Array[T]. What mean [T] ?

Swift, Array[T]. What mean [T] ?

3rd Apr 2018, 4:18 AM
Вадим Султанов
Вадим Султанов - avatar
2 Answers
+ 2
I don't know swift, but it sounds like T is a generic type to me 🤔
3rd Apr 2018, 5:08 AM
***
*** - avatar
0
I dont know if im understanding your question correctly, but i believe that the [T] is suppose to be where you put the initializer, meaning whether your array will be am [int], [double, [string], etc
27th Jul 2019, 5:37 PM
StarxGazr
StarxGazr - avatar