Hacker News new | ask | show | jobs
by a_bonobo 4069 days ago
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...