Hacker News new | ask | show | jobs
by wwfn 68 days ago
Absolutely! And the list.pop version is multiple orders of magnitude slower. But I took the prompt to be asking for in-place modification of the existing list. Comprehension does not do that.