You might consider Set::IntSpan.
In reply to Re: complementary array indices by ig in thread complementary array indices by coldy