rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/clojure

6 lines
92 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
(defn make-adder [x]
(let [y x]
(fn [z] (+ y z))))
(def add2 (make-adder 2))
(add2 4)