Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift for Loop with where Clause

// remove Java from an array

let languages = ["Swift", "Java", "Go", "JavaScript"]

for language in languages where language != "Java"{
  print(language) 
}
 
PREVIOUS NEXT
Tagged: #Swift #Loop #Clause
ADD COMMENT
Topic
Name
4+2 =