<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakkun61</author_name>
  <author_url>https://blog.hatena.ne.jp/kakkun61/</author_url>
  <blog_title>趣味はデバッグ……</blog_title>
  <blog_url>https://kakkun61.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>今回は case analysis と呼ばれる関数の話です1。 data D a b c = C0 a b | C1 c 例えば上記のようなデータ型があった場合 case analysis 関数は次のようになります。 d :: (a -&gt; b -&gt; d) -&gt; (c -&gt; d) -&gt; D a b c -&gt; d d f _ (C0 a b) = f a b d _ f (C1 c) = f c 値構築子の数だけ関数を引数とし、対象のデータを最後の引数とします。それぞれの関数の型は値構築子の型に似ます。 C0 :: a -&gt; b -&gt; D a b c C1 :: c -&gt; D a b c d ::…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakkun61.hatenablog.com%2Fentry%2F2021%2F01%2F06%2FCase_Analysis_%25E9%2596%25A2%25E6%2595%25B0&quot; title=&quot;Case Analysis 関数 - 趣味はデバッグ……&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>2021-01-06 06:30:09</published>
  <title>Case Analysis 関数</title>
  <type>rich</type>
  <url>https://kakkun61.hatenablog.com/entry/2021/01/06/Case_Analysis_%E9%96%A2%E6%95%B0</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
