Skip to content

Instantly share code, notes, and snippets.

@joanmolinas
Last active August 29, 2015 14:17
Show Gist options
  • Save joanmolinas/47a7136db579a27eb1ac to your computer and use it in GitHub Desktop.
Save joanmolinas/47a7136db579a27eb1ac to your computer and use it in GitHub Desktop.
HackerSchool
for i in 1...100 {
switch (i) {
case let x where x%15 == 0:
println("CracklePop")
case let x where x%3 == 0:
println("Crackle")
case let x where x%5 == 0:
println("Pop")
default:
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment