<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>NyaRuRu</author_name>
  <author_url>https://blog.hatena.ne.jp/NyaRuRu/</author_url>
  <blog_title>NyaRuRuが地球にいたころ</blog_title>
  <blog_url>https://nyaruru.hatenablog.com/</blog_url>
  <categories>
    <anon>.NET</anon>
    <anon>Python</anon>
  </categories>
  <description>.NET の IEnumerator の欠点 C#の似たようなものとして、IEnumeratorというのがありますが、それの方式は、 MoveNextで次の要素に移動 移動できたら真、移動できなかったら偽を返す Currentで現在の要素を取得する というインターフェイスです。 これだと上のような問題は起きません。 欠点としては、要素をCurrentメソッドで取得できるよう、現在の要素を保持していないといけない、ということでしょうか。 そして、Javaの方式でもC#の方式でも同様に当てはまる欠点として、「一回の反復につき、2回以上のメソッド呼び出しが必要となってしまう」という問題があります。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnyaruru.hatenablog.com%2Fentry%2F20070818%2Fp1&quot; title=&quot;IEnumerator 色々 - NyaRuRuが地球にいたころ&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>2007-08-18 00:00:00</published>
  <title>IEnumerator 色々</title>
  <type>rich</type>
  <url>https://nyaruru.hatenablog.com/entry/20070818/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
