{"version":"1.0","categories":["Clojure","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_name":"Hatena Blog","image_url":null,"blog_title":"\u534a\u7a7a\u6d1e\u7537\u5973\u95a2\u4fc2","height":"190","title":"Clojure\u3092\u89e6\u3063\u305f","description":"\u307b\u3093\u306e\u3059\u3053\u3057\u3060\u3051Clojure\u3067\u904a\u3073\u307e\u3057\u305f\u3002 (defn argcount ([] 0) ([x] 1) ([x y] 2) ([x y & more] (+ (argcount x y) (count more)))) \u3053\u3093\u306a\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u3051\u3066\u3059\u3054\u3044\u3002 (defn make-adder [x] (let [y x] (fn [z] (+ y z)))) (def add2 (make-adder 2)) (add2 4) -> 6 \u3053\u308c\u306fJS\u3067\u3082\u4f3c\u305f\u3088\u3046\u306b\u66f8\u3051\u308b\u3063\u3059\u306d\u3002 const make_adder = x => { let y = x return z => { return y + \u2026","type":"rich","url":"https://mactkg.hateblo.jp/entry/2016/05/08/224739","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmactkg.hateblo.jp%2Fentry%2F2016%2F05%2F08%2F224739\" title=\"Clojure\u3092\u89e6\u3063\u305f - \u534a\u7a7a\u6d1e\u7537\u5973\u95a2\u4fc2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","published":"2016-05-08 22:47:39","author_name":"mactkg","blog_url":"https://mactkg.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/mactkg/"}