{"version":"1.0","blog_title":"\u5730\u7344\u306e\u30cd\u30b3\u30d6\u30ed\u30b0","description":"reduce(l|r)\u3068\u3044\u3046\u308f\u3051\u3067\u554f\u984c\u3002reducel\u3068reducer\u3092\u5b9f\u88c5\u305b\u3088\u3002\u5236\u9650\u6642\u9593\u306f\u3042\u308f\u305b\u306610\u5206\u3002\u305f\u3060\u3057\u3001reducel\u3068reducer\u306f\u3001Haskell\u306b\u304a\u3044\u3066\u6b21\u306e\u6319\u52d5\u3092\u793a\u3059\u3082\u306e\u3068\u3059\u308b\u3002 Symbol.class_eval do def to_proc proc do |*x| obj = x.shift obj.__send__(self, *x) end end end Enumerable.module_eval do # def reducel # self.inject {|r, v| yield(r, v) } def reducel (&block) self.inj\u2026","published":"2007-05-28 14:44:53","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/nokturnalmortum/","author_name":"nokturnalmortum","type":"rich","url":"https://anekos.hatenablog.com/entry/20070528/1180331093","blog_url":"https://anekos.hatenablog.com/","width":"100%","provider_name":"Hatena Blog","title":"\u5b9f\u88c5\u3059\u305f\uff01","categories":["PG","Ruby"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanekos.hatenablog.com%2Fentry%2F20070528%2F1180331093\" title=\"\u5b9f\u88c5\u3059\u305f\uff01 - \u5730\u7344\u306e\u30cd\u30b3\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","image_url":null}