This is the HTML version of TeX Reference Manual by David Bausum. © Copyright 2002, Kluwer Academic Publishers. All Rights Reserved.
The latest reviewed version was checked on 25 November 2024. There are template/file changes awaiting review. A Wikibookian believes this page should be split into smaller pages with a narrower subtopic. You can help by splitting this big page into smaller ones. Please make sure to follow the naming policy. Dividing books into smaller sections can provide more focus and allow each one to do one th
「TeX で再帰する件」の続き。再帰は関数型プログラミングで常用される技術である。従って、Scheme、Haskell 等の関数型プログラミング言語を習得しているなら、その知識は TeX でのプログラミングでも役に立つことは確かである。ただ、TeX は「関数がない言語」という「関数型言語」の対極にある性質も備えている。だから関数型言語におけるコーディング手法をそのまま持ち込むのは不適切な場合もあることに注意すべきである。 再び「1 から n までの整数を順に出力する」を例にとる。Scheme で末尾再帰形式で書くと次のようになるだろう。 (define (count-up-to n) (define (count-up-to-iter m n) (display m) (newline) (if (< m n) (count-up-to-iter (+ m 1) n))) (count-u
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く