rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/clojure
2019-10-21 10:18:17 +02:00

6 lines
92 B
Plaintext

(defn make-adder [x]
(let [y x]
(fn [z] (+ y z))))
(def add2 (make-adder 2))
(add2 4)