<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinriyo</author_name>
  <author_url>https://blog.hatena.ne.jp/shinriyo/</author_url>
  <blog_title>万年素人からHackerへの道</blog_title>
  <blog_url>https://shinriyo.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>範囲オブジェクトrangeにあるinjectメソッドが何かよくわからないので調べた http://d.hatena.ne.jp/poqute/20061218/p1 (1..3).inject {|r, i| r += i} でも (1..3).inject(0) {|r, i| r += i} もおそらく同じ。 injectの引数は初期値。初期値 init を省略した場合は、最初に先頭の要素と 2 番目の要素をブロックに渡される。 [3, 2, 1].inject {|x, i| x * i } の場合3と2が渡される。 =&gt; 3 * 2 結果は6 次は、先ほどの結果6 * 1となる =&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinriyo.hateblo.jp%2Fentry%2F20130716%2Fp1&quot; title=&quot;Rubyのinject - 万年素人からHackerへの道&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>2013-07-16 00:00:02</published>
  <title>Rubyのinject</title>
  <type>rich</type>
  <url>https://shinriyo.hateblo.jp/entry/20130716/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
