Let's say I have this 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 any way to access tuples by subscript?
What you want is not possible with tuples and if you dont want to cast everything later-on your only option is struct or class. struct seems like a better choise :)