Answers for "why set in swift i"

0

set in swift

let setExample: Set = ["Apple", "Orange", "Banana", "Apple"]
if setExample.contains("Apple") {
    print("Its healthy")
}
print(setExample)
// OUTPUT:
//Its healthy
//["Orange", "Apple", "Banana"]
Posted by: Guest on January-24-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language