Sha256: c9053fe10155adf6d4096cd0eddfe44301429095ba9348a65eb093de538fc41a

Contents?: true

Size: 92 Bytes

Versions: 127

Compression:

Stored size: 92 Bytes

Contents

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

Version data entries

127 entries across 125 versions & 9 rubygems

Version Path
rouge-1.8.0 lib/rouge/demos/clojure
rouge-1.7.7 lib/rouge/demos/clojure
rouge-1.7.4 lib/rouge/demos/clojure
rouge-1.7.3 lib/rouge/demos/clojure
rouge-1.7.2 lib/rouge/demos/clojure
rouge-1.7.1 lib/rouge/demos/clojure
rouge-1.7.0 lib/rouge/demos/clojure
rouge-1.6.2 lib/rouge/demos/clojure
rouge-1.6.1 lib/rouge/demos/clojure
rouge-1.5.1 lib/rouge/demos/clojure
rouge-1.5.0 lib/rouge/demos/clojure
rouge-1.4.0 lib/rouge/demos/clojure
rouge-1.3.4 lib/rouge/demos/clojure
rouge-1.3.3 lib/rouge/demos/clojure
rouge-1.3.2 lib/rouge/demos/clojure
rouge-1.3.1 lib/rouge/demos/clojure
rouge-1.3.0 lib/rouge/demos/clojure
rouge-1.2.0 lib/rouge/demos/clojure
rouge-1.1.0 lib/rouge/demos/clojure
rouge-0.5.4 lib/rouge/demos/clojure