<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cointoss1973</author_name>
  <author_url>https://blog.hatena.ne.jp/cointoss1973/</author_url>
  <blog_title>secretbase.log</blog_title>
  <blog_url>https://cointoss.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Python</anon>
    <anon>Ruby</anon>
  </categories>
  <description>毎週木曜日に社内でC#の勉強会をやっていて、そこで yield なる文がなにをやっているかわからないという話題に。そういえば Python で フィボナッチ数列 を取得するときに yield 使っていたっけ。同じかな？って思ったので試してみました。 結論 C#(イテレータブロック) と、Python(ジェネレータ）は非常によく似ている。 Rubyは異なる（主従が異なる感じ）。 C# C#の場合、yieldはイテレータブロック内で列挙子オブジェクトに値を生成する場合に、 yield return 式として使用します。 yield break として反復処理の終了を通知することもできるらしい。 u…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcointoss.hatenablog.com%2Fentry%2F2012%2F12%2F20%2F234336&quot; title=&quot; C# , Python , Ruby の yield の違い - secretbase.log&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>2012-12-20 23:43:36</published>
  <title> C# , Python , Ruby の yield の違い</title>
  <type>rich</type>
  <url>https://cointoss.hatenablog.com/entry/2012/12/20/234336</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
