Generated: December 12, 2003, 12:35:26 | | A SchemeDoc Manual |
The program prog1
Kurt Nørmark ©
Source file: /user/normark/scheme/examples/tutorial/schemedoc/prog1.scm
LAML Version 23.00 (December 11, 2003, slim) This is a Scheme file with a few simple functions.
The functions are written and organized with the purpose
of demonstrating the LAML SchemeDoc tool.
Table of Contents: Alphabetic index: 1 The fac and fib functions. |
|
|
fac |
Form | (fac n) |
Description | Calculate the factorial of n
|
|
fib |
Form | (fib n) |
Description | Calculated the fib function.
Notice that this is a very inefficient
Implementation.
|
|
2 A couple of higher order function. |
These functions are useful in many situations.
|
|
negate |
Form | (negate p) |
Description | A higher order functions which negates the predicate p.
Negate accepts a predicate and returns the negated predicate.
|
|
compose |
Form | (compose f g) |
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: December 12, 2003, 12:35:27
Generated by LAML SchemeDoc .
This documentation has been extracted automatically from the Scheme
source file by means of the Schemedoc tool