Generated: June 7, 2005, 22:44:12 Copyright © 2005 , Kurt Nørmark The local LAML software home page

SchemeDoc Demo

Kurt Normark © Aalborg University, Denmark

Source file: /user/normark/scheme/examples/schemedoc/scheme-documentation-tools/prog1.scm
LAML Version 27.0 (June 2, 2005, development)

This is a brief example of a Scheme program with multi-semicolon SchemeDoc comments.

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

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

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

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


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

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


2 Factorials.
This section demonstrates a plain function.


Generated: June 7, 2005, 22:44:12
Generated by LAML SchemeDoc.
This documentation has been extracted automatically from the Scheme source file.