Hacker News new | ask | show | jobs
by nusl 70 days ago
Why would you modify the original list and return it with the second example? Honestly the first is better
1 comments

The question isn't really what's better practice, the question is whether the code follows the prompt. The first example does not.