Quantcast
Channel: Accessing a function bound to a var in clojure - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Accessing a function bound to a var in clojure

$
0
0

So if I understand this correctly, when I write:

(defn foo [x] (+ (* (- x 3) 2) (- x 3)))

foo gets bound to:

(fn [x] (+ (* (- x 3) 2) (- x 3)))

How do I access the function from foo? My intention is to change something in the function and return a new function.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images