We have a convention for early break from iteration functions; we should update int::range to use it or we should add a new function that does this.