Created
July 21, 2018 13:09
-
-
Save comnik/02456326a7fd5e89d61b1a7a05d86ac9 to your computer and use it in GitHub Desktop.
Deterministic mapping w/o carrying state, via memoize.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def encode-symbol (memoize (fn [sym] (clojure.lang.RT/nextID)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment