Add helper function (iter) to iterate over a range of integers