Generated: Tuesday, June 5, 2007, 13:56:43 A SchemeDoc Manual

A test

Kurt Normark Department of Computer Science, Aalborg University

Source file: /user/normark/.public_html/schemedoc/scheme-examples/ex.scm

A demo

Table of Contents:
1. Factorials. 2. List selection functions.

Alphabetic index:
fac (fac n) The factorial function.
head (head pair) An alias of car.
tail (tail pair) An alias of cdr.


1 Factorials.
This section demonstrates a plain function.

fac
Form (fac n)
Description The factorial function. Also known as n!
Precondition n >= 0
Parameters n An integer
Returns n * (n-1) * ... * 1
See also Scheme source file fac


2 List selection functions.
This section demonstrates two aliased functions.

head
Form (head pair)
Description An alias of car.
Parameters pair A cons cell
Returns The first component of a cons cell
See also Scheme source file head

tail
Form (tail pair)
Description An alias of cdr.
Parameters pair A cons cell
Returns The second component of a cons cell
See also Scheme source file tail

Generated: Tuesday, June 5, 2007, 13:56:43
Generated by LAML SchemeDoc using LAML Version 32.1 (June 5, 2007, full)