In Swift 3 playground, I want to create a mutable array with numbers at some indices and Strings at others. I get errors doing this:
var playerInfo = [[String]]()
playerInfo[0][2] = "Adam" //Error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_1386_INVOP, subcode=0x0)
playerInfo[0][3] = "Martinez"
playerInfo[0][1] = "00"
EDIT: Something like this?
var playerInfo: [[String:Any]] = [
[
"playerNumber" : "00",
"playerFirstName" : "Adam",
"playerLastName" : "Martinez"
]
]