A simple function that creates a counter function (with localized mutable state).
Posted: 8 years ago by Tomas Petricek