Le lundi 22 juin 2015 à 09:51 -0700, Benjamin Deonovic a écrit : > I have a Dict constructed lets call it d. I want to pass it to a > function that will change some entries in d. What is the appropriate > way to do this so that I end up with an updated dictionary? Just pass it to the function? :-)
In Julia, mutable objects passed as arguments can be modified by the function. The convention is to suffix them with ! to make it obvious to the caller that the object is modified. Regards