Last active
February 7, 2018 19:56
-
-
Save dankohn/923e89c9f67ee7452242e8b5ca5995d9 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
puts 1.upto(100).map { |n| "#{'Fizz' if n%3==0}#{'Buzz' if n%5==0}".presence || n } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment