Pedro Gimeno wrote, On 2015-03-25 17:22:> Sorry about that. I hope the attached helps.
The previous version left out a corner case. Attached is a function andtest suite to deal with it.