Question : continue keyword in swift language
Answered by : muhammad-zeeshan-vdbiet6jzy1z
var songs = ["Shake it Off", "You Belong with Me", "Look What You Made Me Do"]
for song in songs { if song == "You Belong with Me" { continue } print("My favorite song is \(song)")
}
Source : https://www.hackingwithswift.com/read/0/9/loops | Last Update : Thu, 03 Mar 22