<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kojo_Sugita</author_name>
  <author_url>https://blog.hatena.ne.jp/Kojo_Sugita/</author_url>
  <blog_title>御手洗特急途中下車</blog_title>
  <blog_url>https://kojo-sugita.hatenadiary.org/</blog_url>
  <categories>
    <anon>Scheme</anon>
  </categories>
  <description>※ 以下はScheme初心者である私の勉強用のメモです。 間違っている可能性がありますので注意してください。 再帰呼び出し 再帰呼び出しとは、関数が自分自身を呼び出すことである。Schemeでは、ループ処理を再帰を利用して実装することが多いようである。 通常の再帰 例えば、xとnを指定して、xのn乗を計算する再帰関数は以下のように実装できる。 例 ;xのn乗を計算する (define (power x n) (if (&lt;= n 0) 1 (*(power x (- n 1))x))) 再帰呼び出しの欠点として、パフォーマンスの低下が挙げられる。 通常計算機は、関数を呼び出す前に計算の途中結果を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkojo-sugita.hatenadiary.org%2Fentry%2F20080810%2F1218378352&quot; title=&quot;Schemeで再帰を行う - 御手洗特急途中下車&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>2008-08-10 23:25:52</published>
  <title>Schemeで再帰を行う</title>
  <type>rich</type>
  <url>https://kojo-sugita.hatenadiary.org/entry/20080810/1218378352</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
