About Flip-Flop Predicate

Emulates flip-flop logic similar to two-dots flip-flop in Perl or Ruby.