<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>&quot;yield*&quot;記法はforeachでぶん回せるような変数をバラして次の関数に渡す事ができます。 実際のところ 具体例として、フィボナッチ数列をジェネレータ関数で実装するケースを考えてみます。 記述する際の利用法は以下の(1)(2)の通り。 'use strict'; function* fibonacci() { let o = [0, 1, 1]; // (1) yield* o; // (2) while (true) { o[0] = o[1]; o[1] = o[2]; o[2] = o[0] + o[1]; yield o[2]; } } for (var n of fibonac…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2016%2F05%2F13%2F225618&quot; title=&quot;&amp;quot;yield*&amp;quot;記法は変数をバラして渡す事ができる - Bye Bye Moore&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>2016-05-13 22:56:18</published>
  <title>&quot;yield*&quot;記法は変数をバラして渡す事ができる</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2016/05/13/225618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
