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?
It is kind of possible using reflection:
Mirror(reflecting: tuples).children[AnyIndex(row)].value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With