News for hackers. Stuff that matters.
Re:FizzBuzz in Too Much Detail by a_bonobo on Sunday April 26, 2015 @08:44AM (#9441560)
Ruby has the added bonus of Flip Flops to make everything even more opaque!

    a=b=c=(1..100).each do |num|
      print num, ?\r,
        ("Fizz" unless (a = !a) .. (a = !a)),
        ("Buzz" unless (b = !b) ... !((c = !c) .. (c = !c))),
        ?\n
    end
Add comments as needed

Source: http://www.reddit.com/r/ruby/comments/2n987g/the_flip_flop_o...

There are no comments on this comment yet.