<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m_seki</author_name>
  <author_url>https://blog.hatena.ne.jp/m_seki/</author_url>
  <blog_title>@m_seki の</blog_title>
  <blog_url>https://druby.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>戻り値が存在しないActorモデルで再帰とかどう書くのかなー、とか思っていろいろ考えてたら脱線した。 Actorとか片道のgotoだよなー(???) てゆか末尾再帰もgotoじゃん。 再帰といえばフィボナッチ n-1とn-2を引数に呼ぶと二重に再帰しないとかあったよな [n-1, n-2]から[n, n-1]を返す演算？ んでWikipediaみたらそういう定義も出てた。Rubyでいうとこう。 require 'matrix' def fib(n) (Matrix[[1, 1], [1, 0]] ** n)[1, 0] end まあ、そうだよなー。行列かっこいい。ところでActorモデルじゃな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdruby.hatenablog.com%2Fentry%2F20120109%2F1326120427&quot; title=&quot;フィボナッチ数列 - @m_seki の&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-01-09 23:47:07</published>
  <title>フィボナッチ数列</title>
  <type>rich</type>
  <url>https://druby.hatenablog.com/entry/20120109/1326120427</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
