Create a gist now

Instantly share code, notes, and snippets.

kotlinでワンライナーfizzbuzz
(1..100).map{println(when{it%15==0->{"fizzbuzz"}it%5==0->{"buzz"}it%3==0->{"fizz"}else->it})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment