swift - Array declaration difference -
this question has answer here:
- confused swift array declarations 2 answers
if have minute; i'm struggling understand difference between 2 declaration. know first 1 create new empty array of type string second declare existing array of type string ? thank you
var array = [string] () var array:[string] = []
there no difference between declarations - both create empty string array
Comments
Post a Comment