If I have a function which performs an in place transformation on an argument and also returns a result, what is the appropriate style? The following works as I intend, but I’m wondering if this will get me into trouble at some point. Should I be coding this kind of computation in a different way?
function f!(X) @. X = sin(X); m = maximum(X); return m end