<?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>
  </categories>
  <description>自由モノイドプログラミング言語の作成(Python版 2) 自由モノイドのクラス 「自由モノイドのイテレーター」では、自由モノイドを表すクラスを作成して、それを無限の場合に拡張しようとしていました。自由モノイド元は有限個の生成元の積なのでそうしていたのですが、最初から無限個の積としてもできそうだということがわかってきました。これは Python でもできるということがわかりました。Python 版では無限個の積を表すクラスを作成します。有限個の積の場合は自由モノイドの元となります。 from itertools import chain from typing import Callable,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputeralgebra.hatenablog.com%2Fentry%2F2024%2F10%2F26%2F002449&quot; title=&quot;自由モノイドのイテレーター(7) - 非専門的シンギュラリティー研究所&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/41EZ5GV0P4L._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-10-26 00:24:49</published>
  <title>自由モノイドのイテレーター(7)</title>
  <type>rich</type>
  <url>https://computeralgebra.hatenablog.com/entry/2024/10/26/002449</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
