im new to swift.I tried to follow many tutorials but still im not able to find a solution for it. I want to pass values stored in an array to a function.
let trackList = ["AC","BB"]
for trackId in trackList{
let ind = trackList.index(of: trackId)
let index = trackList.startIndex.distance(to: ind!)
let num = Int(String(describing: ind))
let track = String(trackId)
addDiaryList(track:String) //i keep getting error here saying: Cannot convert value of type 'String.Type' to expected argument type 'String'
}
func addDiaryList(track:String) {
}