<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>magicalhat</author_name>
  <author_url>https://blog.hatena.ne.jp/magicalhat/</author_url>
  <blog_title>はちゅにっき</blog_title>
  <blog_url>https://hatyuki.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>[1, 2, 3].each_with_object(Array.new) do |i, memo| memo += [i, i * 2] end # =&gt; [ ] あれ！？ [[1, 2], [2, 4], [3, 6]] になると思ったのに！？ Ruby - Enumerable.each_with_object の使い道 - Qiitaqiita.com Ruby - injectとeach_with_objectって何が違うのさ？ - Qiitaqiita.com もうさんざん既出ですね！ Enumerable#each_with_object は引数に対して破壊的な変更を加えなければ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatyuki.hatenablog.jp%2Fentry%2F2015%2F07%2F09%2F162009&quot; title=&quot; Enumerable#each_with_object でハマった - はちゅにっき&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>2015-07-09 16:20:09</published>
  <title> Enumerable#each_with_object でハマった</title>
  <type>rich</type>
  <url>https://hatyuki.hatenablog.jp/entry/2015/07/09/162009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
