I\'m learning syntax of Swift and wonder, why the following code isn\'t working as I expect it to:
for i in 1...100{ switch (i){ case 1: Int
This is how it can be done
var i = 0 switch i { case i where i % 5 == 0 && i % 3 == 0: print(" Fizz Buzz") case i where i % 3 == 0 : print("Fizz") case i where i % 5 == 0 : print("Buzz") default: print(i) }