I think I understand how a flip-flop works thanks to a tutorial, but the example there is contrived just for teaching. Can anyone give an example of how you have actually us
Odd/even line highlighting in HTML tables with many rows would seem to be a valid use-case.
I've written something not as elegant as the above several times in the past when rendering tables in Rails.