let setExample: Set = ["Apple", "Orange", "Banana", "Apple"] if setExample.contains("Apple") { print("Its healthy") } print(setExample) // OUTPUT: //Its healthy //["Orange", "Apple", "Banana"]