Re: [julia-users] let unpack

2016-02-10 Thread Mauro
I think this should work. You should file an issue if there is none yet. On Thu, 2016-02-11 at 02:18, vish...@stanford.edu wrote: > You can normally do > > z = (1,2,3) > (a,b,c) = z > > and it will unpack things from z into a,b,c. > However, if you do: > > let (a,b,c) = z; a end > > it's a

[julia-users] let unpack

2016-02-10 Thread vishesh
You can normally do z = (1,2,3) (a,b,c) = z and it will unpack things from z into a,b,c. However, if you do: let (a,b,c) = z; a end it's a syntax error. Is there a way to get the spirit of this unpacking inside a let statement? I don't want permanent assignment in the function (I already