There’s no built in pass by reference to the best ...
# getting-started
d
There’s no built in pass by reference to the best of my knowledge. Depending on your use case you can try the traditional Java hack for this problem (passing in an array of one element and modifying the item). If you just need to return multiple items from a function it might be better to return a pair or tuple of some kind and use array destructuring.
👍 1