swift2 - Can't use method "contains" in Swift 2 -


i using swift 2.

i used code:

while contains(currentcardvalues, randomnumber + 1) { 

i getting error:

"contains" unavailable: call contains() method on sequence

this because contains() method defined in protocol extension of sequence. should call way:

currentcardvalues.contains(randomnumber + 1) 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -