experimental toggle() implmentation via parameterised <rhs(...)> rule