Re:Help us collect modern Python NumPy code solutions
by PartiallyTyped on Monday March 28, 2022 @01:15PM
(#30832905)
I like your your solution, I think using `a[0:min(map(len,arrays))]` (ie with 0) is faster because it returns a slice and not a copy of the array.
I am glad you liked the trick!
A code-golfed version for different array lengths:
The trick to get a local variable within a list comprehension statement with from your zip_array function is very cool by the way, but I sacrificed it in favor of shorter code.