{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20070907%2F1189172928\" title=\" Ruby\u3067\u3082\u30ab\u30ea\u30fc\u5316 - \u8da3\u5473\u7684\u306b\u3063\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://ha-tan.hatenadiary.org/","provider_name":"Hatena Blog","width":"100%","title":" Ruby\u3067\u3082\u30ab\u30ea\u30fc\u5316","author_name":"ha-tan","author_url":"https://blog.hatena.ne.jp/ha-tan/","type":"rich","url":"https://ha-tan.hatenadiary.org/entry/20070907/1189172928","published":"2007-09-07 22:48:48","image_url":null,"provider_url":"https://hatena.blog","categories":["Ruby"],"blog_title":"\u8da3\u5473\u7684\u306b\u3063\u304d","description":"\u95a2\u6570\u578b\u8a00\u8a9e\u30e9\u30d6\u306a\u4eba\u306f\u3001Ruby\u3067\u3082\u30ab\u30ea\u30fc\u5316\u3057\u305f\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u601d\u3044\u307e\u3059(\u7279\u306bHaskell\u30e9\u30d6\u306a\u4eba\u306f\u305d\u306e\u50be\u5411\u304c\u5f37\u3044\u3088\u3046\u306b\u601d\u3044\u307e\u3059)\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u3093\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 module Kernel def curry(sym, *a1) f = sym.respond_to?(:call) ? sym : method(sym) lambda do |*a2| f.call(*(a1 + a2)) end end end \u4f7f\u3044\u65b9\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002map\u306e\u4f8b\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002\u3042\u3041\u4f55\u3066\u7f8e\u3057\u3044\u306e\u3067\u3057\u3087\u3046\u3002 def add(a, b) a + b end p curry(:add, 2)[3] \u2026","height":"190"}