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.
- [julia-users] function modifying one of its arguments amiksvi
- Re: [julia-users] function modifying one of its arguments Yichao Yu
- [julia-users] function modifying one of its arguments Scott Jones
