Open deepaksuresh opened 4 years ago
More or less a duplicate of #35269. Splatting very long argument lists should never be done. We could use some sort of better error or checks here but I'm not sure exactly what. In the mean time please avoid this.
Is there a correct way to accomplish this zipping, then? I just think of separate list comprehensions, or for efficiency, preallocating arrays and then looping over the array of tuples.
(I just spent a while trying to figure out what was going on, so +1 to catching this without an infinitely long stack overflow error)
Consider the following snippet
arrays_zipped
is an array of tuples, where first and second element of each tuple comesarray1
andarray2
respectively.In order to unzip
arrays_zipped
i.e. to get backarray1
andarray2
out ofarrays_zipped
collect(zip(arrays_zipped...))
This throws the following error and exits the Julia session