<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zrbabbler</author_name>
  <author_url>https://blog.hatena.ne.jp/zrbabbler/</author_url>
  <blog_title>マクロツイーター</blog_title>
  <blog_url>https://zrbabbler.hatenablog.com/</blog_url>
  <categories>
    <anon>TeX</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>「TeX で再帰する件」の続き。再帰は関数型プログラミングで常用される技術である。従って、Scheme、Haskell 等の関数型プログラミング言語を習得しているなら、その知識は TeX でのプログラミングでも役に立つことは確かである。ただ、TeX は「関数がない言語」という「関数型言語」の対極にある性質も備えている。だから関数型言語におけるコーディング手法をそのまま持ち込むのは不適切な場合もあることに注意すべきである。 再び「1 から n までの整数を順に出力する」を例にとる。Scheme で末尾再帰形式で書くと次のようになるだろう。(define (count-up-to n) (defi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzrbabbler.hatenablog.com%2Fentry%2F20110829%2F1314631624&quot; title=&quot;TeX の末尾再帰(3) - マクロツイーター&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-08-29 00:27:04</published>
  <title>TeX の末尾再帰(3)</title>
  <type>rich</type>
  <url>https://zrbabbler.hatenablog.com/entry/20110829/1314631624</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
