Help us understand the problem. What is going on with this article?

RubyでFizzBuzzのコードゴルフ(58bytes)

More than 5 years have passed since last update.

以下のページを参考に作成しました。

東京Ruby会議10で行われたコードゴルフの解答例を紹介します

fizzbuzz_58bytes.rb
1.upto(100){|x|p"#{[:Fizz][x%3]}#{[:Buzz][x%5]}"[/.+/]||x}

メモ
* 1..100の要素生成・取り出しは 1.upto(100){} が最短っぽい
* puts を p に変えることで3字節約。ただしエスケープシーケンスを用いるコードが利用できなくなる欠点がある
* こちらのサイトによると50bytesが可能らしいが、ここから8bytesどう削るのか皆目検討が付かない

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away