When to use a Var instead of a function?
Yes, a Var in Clojure is similar to a C pointer. This is poorly documented. Suppose you create a function fred as follows: (defn fred [x] (+ x 1)) There are actually 3 things here. Firstly, fred is a symbol. There is a difference between a symbol fred (no quotes) and the keyword :fred (marked … Read more