{"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_title":"\u3072\u304c\u304d\u306e\u65e5\u8a18","title":"C++ \u3067 Ruby \u306e inject \u307f\u305f\u3044\u306a\u3084\u3064\u3092\u4f5c\u3063\u3066\u307f\u308b","author_url":"https://blog.hatena.ne.jp/mas-higa/","type":"rich","version":"1.0","url":"https://mas-higa.hatenadiary.org/entry/20160207/1454811035","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20160207%2F1454811035\" title=\"C++ \u3067 Ruby \u306e inject \u307f\u305f\u3044\u306a\u3084\u3064\u3092\u4f5c\u3063\u3066\u307f\u308b - \u3072\u304c\u304d\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"mas-higa","blog_url":"https://mas-higa.hatenadiary.org/","categories":["C++"],"description":"\u4ed5\u4e8b\u3067 C++ \u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30ea\u30cf\u30d3\u30ea\u3092\u517c\u3066 Ruby \u306e inject \u307f\u305f\u3044\u306a (lisp \u306e apply \u307f\u305f\u3044\u306a) \u95a2\u6570\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 #include <iostream> #include <vector> #include <functional> using namespace std; #define ARRSIZ(a) (sizeof(a)/sizeof((a)[0])) #define ARREND(a) ((a)+ARRSIZ(a)) template <class T, class R, class F> R inject(T begin, T end, R\u2026","published":"2016-02-07 11:10:35","width":"100%","image_url":null,"height":"190"}