On Oct 22, 10:51 pm, SigmundV <sigmu... at gmail.com> wrote: > On Oct 22, 6:32 am, Steven D'Aprano <steve >> +comp.lang.pyt... at pearwood.info> wrote: >> > Sure. But the downside of sets is that, like lists, they are not lazy, >> Thank you for pointing this out. I agree that it's not a viable > alternative for large domains. Storing the bounds and the resolution > should be enough. >> /Sigmund This kind of question is a nontrivial research issue -- dealt with for example in the polyhedral language alpha: http://www.irisa.fr/cosi/Rajopadhye/dag-talk.ps