<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>※注 改訂版があります。 任意の階層だけ繰り返しをネストする（Ruby） -- 改訂版 - Camera Obscura 簡単にネストした繰り返しを実行できるようにしました。Integer#times の多重ネスト版です。配列にそれぞれの階層で繰り返す回数を入れます。配列の大きさを変えれば、簡単にどれだけでも深くネストできます。プログラムの中でネストの深さを動的に変えることもできます。 class Array def nest_loop(&amp;bk) nsloop(self, [], &amp;bk) end private def nsloop(ar1, ar2, &amp;bk) tmp1 = ar1.dup…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2015%2F12%2F23%2F230350&quot; title=&quot;任意の階層だけ繰り返しをネストする（Ruby） - Camera Obscura&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-12-23 23:03:50</published>
  <title>任意の階層だけ繰り返しをネストする（Ruby）</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2015/12/23/230350</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
