Hacker News new | ask | show | jobs
by Jweb_Guru 4113 days ago
Sorry, line four of the hypothetical function should be counts.find_or_insert(line, 0) += 1. Would have edited, but HN won't let you edit after the procrastination settings kick in (but curiously, does let you reply).