Apologies in advance. I am a newbie learning Swift and have some working experience with C and Ruby. I'm venturing into Swift.
I'm trying to create and access a multi-dimensional array as follows:
var arrayTest: [[(Int, Int, Int, String)]] = []
arrayTest.append([(1, 2, 3, "Test")])
arrayTest.append([(4, 5, 6, "Test1")])
This seems to work fine in Playground. But trying to access as follows does not work:
println(arrayTest[0][0])
I looked at several entries and the Apple Swift docs. But I was still unable to figure this out.
Any insights appreciated. Thank you.