Hacker News new | ask | show | jobs
by nemetroid 2025 days ago
At the end of the function curr == entry, so the caller already has a separate reference to the object. Also, removing a node from a list does not necessarily mean that you want to delete it. For example, you might want to put it in a different list.