Swift berisi

let elements = [1, 2, 3, 4, 5]
if elements.contains(5) {
    print("yes")
}
Bob7012