Custom tuple unpacking

I would like to be able to write something like

x, y, z = collect(I)

and then have z == collect(I)[3:end]. In other words, I’d like to unpack the entire ‘tail’ of I into the last value on the left hand side.

I don’t know if this makes any sense?

It looks like this is something that’s been discussed for a while but not yet implemented: https://github.com/JuliaLang/julia/issues/2626

4 Likes