Skip to content

Instantly share code, notes, and snippets.

@elim
Created November 19, 2008 17:35
Show Gist options
  • Save elim/26605 to your computer and use it in GitHub Desktop.
Save elim/26605 to your computer and use it in GitHub Desktop.
p((1..100).map{|i|(("%s%s"%[(i%3==0?"Fizz":""),(i%5==0?"Buzz":"")]).match(/.+/)||[i])[0]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment