3 ms·
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 (JavaScrip
by kylec 12y 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/70c9277ec99f80dca2b7b01d40766119a1f44e76 https://github.com/kylecronin/goal/commit/70c9277ec99f80dca2...