> > so when I define > > function f!(x) > x=x+1 > end > > and then > x=1 > f!(x) > I get 2 returned but I also want x to be replaced by the newly calculated > value :/ >
There is an entry of the FAQ about this: http://docs.julialang.org/en/stable/manual/faq/#i-passed-an-argument-x-to-a-function-modified-it-inside-that-function-but-on-the-outside-the-variable-x-is-still-unchanged-why Bye, Mosè
