Skip to content

Instantly share code, notes, and snippets.

@j1n3l0
Last active September 2, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j1n3l0/5663722 to your computer and use it in GitHub Desktop.
Save j1n3l0/5663722 to your computer and use it in GitHub Desktop.
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))
@ahmetpro1
Copy link

54235432453

@ahmetpro1
Copy link

lğilşüişiş

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment