import UIKit
var str = "Hello, playground"
var setOfQuestion = ["q1","q2","q3","q4","q5"]
var setOfAnswers = ["A1","A2","A3","A4","A5"]
var setOfImages = ["Img1","Img2","Img3","Img4","Img5"]
var setOfArray = [[1,2,3,4],[5,6,7,8],[9,10,11],[12,13,14],[15,16]]
var setOfArrays = [setOfQuestion,setOfAnswers,setOfImages,setOfArray] as [Any]
for n in 0...3{
let x = n
//Not able to get array from arry
print(setOfArrays as [[Any]0+x][0])
}
var colors = ["red", "blue"]
var moreColors: String[] = ["orange", "purple"] // explicit type
colors.append("green") // [red, blue, green]
colors += "yellow" // [red, blue, green, yellow]
colors += moreColors // [red, blue, green, yellow, orange, purple]
var days = ["mon", "thu"]
var firstDay = days[0] // mon
days.insert("tue", atIndex: 1) // [mon, tue, thu]
days[2] = "wed" // [mon, tue, wed]
days.removeAtIndex(0) // [tue, wed]
// an array of integer type
var numbers : [Int] = [2, 4, 6, 8]
print("Array: (numbers)")