I need to convert an array of strings to integers.
import UIKit
var test = ["1", "2"]
let test1 = Int(test)[0]
let test2 = Int(test)[1]
print(test1 + test2)
^ this is the basic idea of what I'm trying to do, but I get "Reference to member 'subscript' cannot be resolved without a contextual type". Is this even possible?