I am just getting started with swift and I know we have a default array initialiser in swift and the syntax goes like this:
let myArray = [Int](count:3 , repeatedValue:2)//int types [2,2,2]
But when I remove [Int] from the statement,it initialises the array with values (3,2).
let myArray = (count:3 , repeatedValue:2)//[3,2]
Can anyone explain this behaviour?