Continue Keyword In Swift Language

[Solved] Continue Keyword In Swift Language | Swift - Code Explorer | yomemimo.com
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

Answers related to continue keyword in swift language

Code Explorer Popular Question For Swift