Small counter library to use for console output, logging, etc.
I had a dilemma, because I wanted to include a bit more generic closure where the start value, the growth procedure and the interval could be defined by the user.
So I thought I'd as Wikipedia what to use...
meter - (noun) A device that measures things.
...so I thought the more generic function will be named make-meter
And the one that would count by increasing by one
will be named make-counter
.
Counter's documentation is written in Scribble, to compile the docs you will need Racket installed.
After you have installed Racket,
install this package using raco
(as described below)
and then run:
mkdir -p doc/html
raco scribble ++main-xref-in --html --dest ./doc/html counter.scrbl
HTML docs can then be found in doc/html directory.
raco pkg install --name counter
Public Domain or CC0-1.0, whichever your country accepts.