{"author_url":"https://blog.hatena.ne.jp/tbpg/","categories":["Ruby"],"blog_title":"Tbpgr Blog","title":"Ruby | Proc | curry","author_name":"tbpg","provider_name":"Hatena Blog","type":"rich","version":"1.0","width":"100%","url":"https://tbpgr.hatenablog.com/entry/20141028/1414500590","published":"2014-10-28 21:49:50","provider_url":"https://hatena.blog","image_url":null,"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20141028%2F1414500590\" title=\"Ruby | Proc | curry - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://tbpgr.hatenablog.com/","description":"\u6982\u8981 Proc#curry \u8a73\u7d30 Proc\u3092\u30ab\u30ea\u30fc\u5316\u3059\u308b\u3002\u30ab\u30ea\u30fc\u5316\u3092\u5229\u7528\u3059\u308b\u3068\u30011\u5f15\u6570\u3092\u3068\u308b\u9ad8\u968e\u95a2\u6570\u306b\u8907\u6570\u306e\u5f15\u6570\u3092\u6301\u3064\u95a2\u6570\u3092\u6e21\u305b\u308b\u3002\u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u975e\u5e38\u306b\u53c2\u8003\u306b\u306a\u308b\u3002 \u300c\u95a2\u6570\u578bRuby\u300d\u3068\u3044\u3046\u75c5(3) - \u30ab\u30ea\u30fc\u5316(Proc#curry, Proc#flip) http://yuroyoro.hatenablog.com/entry/2012/08/10/232443 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 x \u3068 y \u3092\u52a0\u7b97\u3057\u3066\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u4f5c\u308a\u3001 chr \u3067\u6587\u5b57\u5316\u3057\u3066 count \u56de\u6570\u5206\u51fa\u529b\u3059\u308b\u6a5f\u80fd\u3092 \u30ab\u30ea\u30fc\u5316\u3057\u307e\u3059\u3002 require 'tbpgr_utils' _sum_to_chr_times = proc {|x\u2026"}