Skip to content

Instantly share code, notes, and snippets.

@max-vogler
Last active April 20, 2016 14:53
Show Gist options
  • Save max-vogler/0988b3ab3eaeadb87369 to your computer and use it in GitHub Desktop.
Save max-vogler/0988b3ab3eaeadb87369 to your computer and use it in GitHub Desktop.
Shortest Kotlin FizzBuzz Code Golf
fun main(a:Array<String>){(1..100).map{i->println(mapOf(0 to i,i%3 to "Fizz",i%5 to "Buzz",i%15 to "FizzBuzz")[0])}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment