Hacker News new | ask | show | jobs
by kylec 4342 days ago
Ugh, so many solutions that mutate internal state. I went for a more purely functional approach and kept track of the count with a function parameter (JavaScript):

https://github.com/kylecronin/goal/commit/70c9277ec99f80dca2...