<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mas-higa</author_name>
  <author_url>https://blog.hatena.ne.jp/mas-higa/</author_url>
  <blog_title>ひがきの日記</blog_title>
  <blog_url>https://mas-higa.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>仕事で C++ を使うことになったので、リハビリを兼て Ruby の inject みたいな (lisp の apply みたいな) 関数を書いてみた。 #include &lt;iostream&gt; #include &lt;vector&gt; #include &lt;functional&gt; using namespace std; #define ARRSIZ(a) (sizeof(a)/sizeof((a)[0])) #define ARREND(a) ((a)+ARRSIZ(a)) template &lt;class T, class R, class F&gt; R inject(T begin, T end, R…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20160207%2F1454811035&quot; title=&quot;C++ で Ruby の inject みたいなやつを作ってみる - ひがきの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-02-07 11:10:35</published>
  <title>C++ で Ruby の inject みたいなやつを作ってみる</title>
  <type>rich</type>
  <url>https://mas-higa.hatenadiary.org/entry/20160207/1454811035</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
