reset! instead of swap! (thanks to @nbeloglazov)
Obvious mistake. Thanks to @nbeloglazov.
Excessive type hints were removed.
Use dec.