Wrangle the borrow checker into allowing us to iterate over function result values while mutating the ctx.values table.