In Clojure, it is not possible to use Case forms with Vars:
(case (resolve 'inc) #'inc 1)
Execution error (IllegalArgumentException) at user/eval2061 (REPL:1).
No matching clause: #'clojure.core/inc
But I could use a hash-map or a (condp = ...)
form instead for a readable solution.
What are some good approaches to dispatch on values of Var objects in Clojure when considering only raw performance?