Though I don't doubt this sort of code works, I think he said 'more elegant', not just a working solution. He was finding fault with the use of two separate captures in the two conditions of the flipflop (..) range operator.
-- [ e d @ h a l l e y . c c ]
Comment on Re^4: .. operator and not including the condition of right operand