32 ms·
This may be what you meant, but it's worse than just making multiple passes over a single array: it allocates a whole new array on each pass to hold the results
by brundolf 5y ago
This may be what you meant, but it's worse than just making multiple passes over a single array: it allocates a whole new array on each pass to hold the results, even for something like a slice()