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