Oh, had another thought. I think short-circuiting here has a risk: what if the xrange.from is 0?