Generated: May 24, 2003, 13:25:40 | Copyright ©2003, Kurt Nørmark |  |
Tutorial Manual - A Mixed Example
Kurt Nørmark © normark@cs.auc.dk Department of Computer Science Aalborg University Denmark
LAML Version 20.00 (May 24, 2003, full)
| This is just an example of a manual - adapted from an existing LAML example, and part of the LAML tutorial.
The example shows how to mix an LAML manual style document with contributions extracted via SchemeDoc. |
|
Table of Contents:
Alphabetic index:
| compose | (compose f g) | A higher order function that composes two functions. | f | (f a b) | Description of function f - a function described in a manual-page | fac | (fac n) | Calculate the factorial of n
| fib | (fib n) | Calculated the fib function. | negate | (negate p) | A higher order functions which negates the predicate p. |
|
1. INTRODUCTION
This is an introduction, authored in a manual section.
f
| Description | | Description of function f - a function described in a manual-page |
|
| Preconditions | | What to ensure before f is called |
|
| Parameters | | a | | Explanation of a | b | | Explanation of g |
|
| Note | | What else to to say about f |
|
2. THE FAC AND FIB FUNCTIONS.
These functions are found in the source file prog4.scm.
The manual stuff for these is done via SchemeDoc.
fac
| Description | | Calculate the factorial of n
|
|
fib
| Description | | Calculated the fib function.
Notice that this is a very inefficient
Implementation.
|
|
3. A COUPLE OF HIGHER ORDER FUNCTION.
These functions are useful in many situations.
negate
| Description | | A higher order functions which negates the predicate p.
Negate accepts a predicate and returns the negated predicate.
|
|
compose
| Description | | A higher order function that composes two functions.
Returns a function which applies f on g.
Both f and g are supposed to take a single argument.
|
|
Generated: May 24, 2003, 13:25:40