Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on FizzBuzz in ten languages.
puts (1..100).map { |i| (fb = [["Fizz"][i % 3], ["Buzz"][i % 5]].compact.join).empty? ? i : fb }
There are no comments on this comment yet.
puts (1..100).map { |i| (fb = [["Fizz"][i % 3], ["Buzz"][i % 5]].compact.join).empty? ? i : fb }