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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -