Javascript – Making a counter with a closure in Elixir
I'm learning Elixir and I just got to the part about closures. When a language has closures, the first thing I usually do is try to make the closure algorithm. In JavaScript it looks something like this: let counter =…