Contact: aviboots(AT)netvision.net.il
41,230 questions
53,732 answers
573 users
import Foundation var arr = [3, 1, 2, 3, 4, 3, 5, 6, 3, 3] // Remove all occurrences of a specific value arr = arr.filter { $0 != 3 } print(arr) /* run: [1, 2, 4, 5, 6] */