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-3.8.0 lib/rouge/demos/clojure
rouge-3.7.0 lib/rouge/demos/clojure
rouge-3.6.0 lib/rouge/demos/clojure
rouge-3.5.1 lib/rouge/demos/clojure
rouge-3.5.0 lib/rouge/demos/clojure
rouge-3.4.1 lib/rouge/demos/clojure
rouge-3.4.0 lib/rouge/demos/clojure
rouge-alda-3.3.0 lib/rouge/demos/clojure
rouge-3.3.0 lib/rouge/demos/clojure
rouge-3.2.1 lib/rouge/demos/clojure
rouge-3.2.0 lib/rouge/demos/clojure
rouge-lines-3.2.3 lib/rouge-lines/demos/clojure
rouge_ecl-1.0.0 lib/rouge/demos/clojure
rouge_ecl-0.0.1 lib/rouge/demos/clojure
rouge-3.1.1 lib/rouge/demos/clojure
rouge-3.1.0 lib/rouge/demos/clojure
rouge-3.0.0 lib/rouge/demos/clojure
rouge-2.2.1 lib/rouge/demos/clojure
rouge-2.2.0 lib/rouge/demos/clojure
rougegal-2.1.2 lib/rouge/demos/clojure