<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>morning_reading</author_name>
  <author_url>https://blog.hatena.ne.jp/morning_reading/</author_url>
  <blog_title>毎朝30分読書会</blog_title>
  <blog_url>https://morning-reading.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>最終章「プログラムの論証」の練習問題です。ついに最後です。 9. 以下の型が与えられているとする data Tree = Leaf Int | Node Tree Tree この木の葉の個数は、節の個数よりも、常に1多いことを示す まず葉の個数を数える関数 countLeaf と、節の個数を数える関数 countNode を定義する countLeaf :: Tree -&gt; Int countLeaf (Leaf _) = 1 countLeaf (Node l r) = (countLeaf l) + (contLeaf r) countNode :: Tree -&gt; Int countNo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmorning-reading.hatenadiary.org%2Fentry%2F20110615%2Fp1&quot; title=&quot;プログラミング Haskell 第13章 プログラムの論証 練習問題 その4 - 毎朝30分読書会&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>2011-06-15 00:00:00</published>
  <title>プログラミング Haskell 第13章 プログラムの論証 練習問題 その4</title>
  <type>rich</type>
  <url>https://morning-reading.hatenadiary.org/entry/20110615/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
