3 ms·For Python, I’d prefer a generator over appending. Less imperative style-wise and faster too I think.by asplake 4y agoFor Python, I’d prefer a generator over appending. Less imperative style-wise and faster too I think.masklinn 4y agoAlso working with iterables rather than requiring sequence. Aka all the things the builtin does (well it also supports zipping an arbitrary number of iterables).asplake 4y agoIndeed. FWIW I meant ‘comprehension, rather than ‘generator’, but hey, both would work