Swift: Access tuples by subscript -


let's have code:

let tuples = ("1", 2, "3", "4", "5", "6", "7", false)  func tableview(tableview:nstableview, viewfortablecolumn tablecolumn:nstablecolumn?, row:int) -> nsview? {     let valueforview = tuples[row] } 

is there way access tuples subscript?

what want not possible tuples , if dont want cast later-on option struct or class. struct seems better choise :)

struct mystruct {     let opt1 = 0     let opt2 = 0     let opt3 = 0     ...     let boolthing = false } 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -