3 ms·
In Julia, I could do (s,z,zz) = spectrum(x); but I end up with variables z and zz that clutter the workspace and take up memory. This is easy to fix with a
by dkarl 15y ago
In Julia, I could do
(s,z,zz) = spectrum(x);
but I end up with variables z and zz that clutter the workspace and take up memory.
This is easy to fix with a bit of additional syntax. Using a placeholder to indicate values you don't care about, that would be:
(s,_,_) = spectrum(x);
I don't know if it's simple on the implementation side, but it's easy to read and understand.