Last active
September 2, 2018 15:33
-
-
Save j1n3l0/5663722 to your computer and use it in GitHub Desktop.
This file contains 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 := method(n, | |
fizz := n % 3 == 0; | |
buzz := n % 5 == 0; | |
if(fizz or buzz, if(fizz and buzz, "fizzbuzz", if(fizz, "fizz", "buzz")), n) | |
) | |
list(1,3,4,5,6,7,9,10,12,13,15) map(n, f(n)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
54235432453