<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bitterharvest</author_name>
  <author_url>https://blog.hatena.ne.jp/bitterharvest/</author_url>
  <blog_title>bitterharvest’s diary</blog_title>
  <blog_url>https://bitterharvest.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskellプログラミング講座（中級編）</anon>
  </categories>
  <description>１．長さを帰納的に表現した注釈つきリスト 元に戻って、リストの長さを整数ではなく帰納的表現でのリストの生成法を考える。最初に自然数Natを代数的データ型で定義する。 data Nat n = Z | S (Nat n) deriving Show ここで、Zは自然数の始まりを示し、S (Nat n)は自然数(Nat n)の次の自然数を表す。Natは型コンストラクタ、nは型引数、ZとSは値コンストラクタである。次に、自然数を実際の整数に対応させるために関数toIntを用意する。 toInt :: Nat n -&gt; Int toInt Z = 0 toInt (S n) = 1 + (toInt …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitterharvest.hatenablog.com%2Fentry%2F2014%2F09%2F21%2F064920&quot; title=&quot; オペレーショナル・モナドで天国と地獄を行ったり来たり（３） - bitterharvest’s diary&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>2014-09-21 06:49:20</published>
  <title> オペレーショナル・モナドで天国と地獄を行ったり来たり（３）</title>
  <type>rich</type>
  <url>https://bitterharvest.hatenablog.com/entry/2014/09/21/064920</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
