Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@j1n3l0 /
Last active Dec 17, 2015

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
Something went wrong with that request. Please try again.