<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gengar</author_name>
  <author_url>https://blog.hatena.ne.jp/gengar/</author_url>
  <blog_title>かきにっき</blog_title>
  <blog_url>https://gengar.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Haskellのiterateにインスパイアされて． class Proc def iterate(init) if block_given? loop { yield(init) init = call(init) } else to_enum(:iterate, init) end end end p proc {|x| x + 1 }.iterate(0).take(10) # =&gt; [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 便利じゃない？もうあるかもしれんけど．</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgengar.hatenadiary.org%2Fentry%2F20081230%2F1230640148&quot; title=&quot;Proc#iterateてのを考えた． - かきにっき&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>2008-12-30 21:29:08</published>
  <title>Proc#iterateてのを考えた．</title>
  <type>rich</type>
  <url>https://gengar.hatenadiary.org/entry/20081230/1230640148</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
