One cool thing about Julia is that you can efficiently return multiple values, 
so instead of returning y, you could return the updated x and y, I.e. return 
(x,y).
I find that that is cleaner also, rather than depending on modifying values.

Reply via email to