<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>computeralgebra</author_name>
  <author_url>https://blog.hatena.ne.jp/computeralgebra/</author_url>
  <blog_title>非専門的シンギュラリティー研究所</blog_title>
  <blog_url>https://computeralgebra.hatenablog.com/</blog_url>
  <categories>
    <anon>関数プログラミングの帰納的関数</anon>
    <anon>ChatGPT</anon>
  </categories>
  <description>F# の無限列を生成する関数を、無限列の各要素を取得する関数の列と見ると、帰納的関数といえるかどうか ChatGPT で調べてみました。 F# でフィボナッチ数列の無限列を生成する関数を、無名関数を返して終了する関数として定義してください と入力すると以下の結果となりました。 F# でフィボナッチ数列の無限列を生成し、無名関数を返す関数を定義するには、遅延評価を活用する必要があります。以下のコードでは、無名関数が次のフィボナッチ数を計算し続ける形で動作します。 let fibonacciGenerator () = let rec nextFib a b = fun () -&gt; a, next…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputeralgebra.hatenablog.com%2Fentry%2F2025%2F01%2F30%2F201204&quot; title=&quot;関数プログラミングの帰納的関数(6) - 非専門的シンギュラリティー研究所&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>https://m.media-amazon.com/images/I/31YKFkhs8GL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-30 20:12:04</published>
  <title>関数プログラミングの帰納的関数(6)</title>
  <type>rich</type>
  <url>https://computeralgebra.hatenablog.com/entry/2025/01/30/201204</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
