<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmurata</author_name>
  <author_url>https://blog.hatena.ne.jp/tmurata/</author_url>
  <blog_title>tmurataの日記</blog_title>
  <blog_url>https://tmurata.hatenadiary.org/</blog_url>
  <categories>
    <anon>SICP</anon>
  </categories>
  <description>問題2.6では加算までだったが、 Web で他の人のを見たら加減乗除全て実装していたので確認してみる。まずは、乗算。 (define (church* m n) (lambda (f) (lambda (x) ((m (n f)) x)))) と思ったけど、引き算の想像がつかない Web の他人のを見ると-1する関数を作成して、それを適用するみたいなんだけど、ソース見た感じで動かないと思ったら、やっぱり動かなかった…。 ということで以降は中止。あ、でもべき乗はやっとけ、ということなので、べき乗はやってみる。 m の0, 1, 2, 3 乗 は以下のようになる (lambda (x) (x)) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmurata.hatenadiary.org%2Fentry%2F20090428%2F1240876989&quot; title=&quot;SICP問題2.6のおまけ - tmurataの日記&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>2009-04-28 09:03:09</published>
  <title>SICP問題2.6のおまけ</title>
  <type>rich</type>
  <url>https://tmurata.hatenadiary.org/entry/20090428/1240876989</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
