What is the advantage of "foreach(v) do.." over "for i in v..."?

Similar use case. Suppose you have a collection of vectors and you want to sort each one. Then you can do foreach(sort!, vectors).

10 Likes