Contact: aviboots(AT)netvision.net.il
40,026 questions
51,982 answers
573 users
var arr = ["swift", "java", "c++", "php"] if let i = arr.firstIndex(of: "php") { arr[i] = "c" } print(arr) /* run: ["swift", "java", "c++", "c"] */