Found the old thread: Proposal: "inout" in for loops. From 2015. Seems like it should have made stdlib by now...