<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>its_out_of_tune</author_name>
  <author_url>https://blog.hatena.ne.jp/its_out_of_tune/</author_url>
  <blog_title>capriccioso String Creating(Object something){ return My.Expression(something); }</blog_title>
  <blog_url>https://its-out-of-tune.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>色々と記事にしたいネタはあるのですが、どれもちゃっちゃと書ける感じでは無いので、今日はちょっと小ネタ更新します。前々から、「チャーチ数とかHaskellなら簡単に表現できんじゃね？」とか思ってたのですが、どうやってshowするか思いつかないし考えるのも面倒だから放置していたのですが、つい最近、ふとした拍子にめちゃくちゃ簡単だという事に気づきまして・・・せっかくなのでちょいと遊んでみましょう。 で、とりあえずまず、いつもの感じでghciを起動して、こんな関数を定義します。*1 Prelude&gt; let showChurch f = f succ 0で、そのままラムダ式でチャーチ数を書いて、この関…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fits-out-of-tune.hatenadiary.org%2Fentry%2F20121208%2F1354989320&quot; title=&quot;Haskellでチャーチ数 - capriccioso String Creating(Object something){ return My.Expression(something); }&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>2012-12-08 02:55:20</published>
  <title>Haskellでチャーチ数</title>
  <type>rich</type>
  <url>https://its-out-of-tune.hatenadiary.org/entry/20121208/1354989320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
