Created
March 24, 2015 18:45
-
-
Save bdkosher/9ba18b295557a02736c2 to your computer and use it in GitHub Desktop.
FizzBuzz in Groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f='fizz';b='buzz';m={x,y->x%y==0};F={n->m(n,15)?"$f$b":m(n,3)?f:m(n,5)?b:n};(1..100).collect{F(it)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment