I have tried all imagined ways and searched for it in Google, StackOverflow and official reference book, but still couldn't find out how to do such operation in Swift:
let basicPrimes = (1,2,3,5,7,11,13,17,19)
if number in basicPrimes {
println("Is prime!")
}
Error message says "Braced block of statements is an unused closure" but I couldn't find any plausible explanation on it that I could make use of.
Any idea what am I doing wrong?