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.26.0 lib/rouge/demos/clojure
rouge-3.25.0 lib/rouge/demos/clojure
rouge-3.24.0 lib/rouge/demos/clojure
rouge-3.23.0 lib/rouge/demos/clojure
rouge-3.22.0 lib/rouge/demos/clojure
rouge-3.21.0 lib/rouge/demos/clojure
rouge-3.20.0 lib/rouge/demos/clojure
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/rouge-2.2.1/lib/rouge/demos/clojure
rouge-3.19.0 lib/rouge/demos/clojure
rouge-3.18.0 lib/rouge/demos/clojure
rouge-3.17.0 lib/rouge/demos/clojure
rouge-3.16.0 lib/rouge/demos/clojure
rouge-3.15.0 lib/rouge/demos/clojure
rouge-3.14.0 lib/rouge/demos/clojure
rouge-3.13.0 lib/rouge/demos/clojure
rouge-3.12.0 lib/rouge/demos/clojure
rouge-3.11.1 lib/rouge/demos/clojure
rouge-3.11.0 lib/rouge/demos/clojure
rouge-3.10.0 lib/rouge/demos/clojure
rouge-3.9.0 lib/rouge/demos/clojure