#
Chapter 1
MzLib

The MzLib collection consists of several libraries, each of which provides a set of procedures and syntax.

To use a MzLib library, either at the top-level or within a module, import it with ``

(require (lib `libname`))

For example, to use the `list.ss` library: ``

(require (lib "list.ss"))

The MzLib collection provides the following libraries:

- `async-channel.ss` -- buffered channels

- `awk.ss` -- AWK-like syntax

- `class.ss` -- object system

- `cm.ss` -- compilation manager

- `cmdline.ss` -- command-line parsing

- `cml.ss` -- Concurrent ML compatibility

- `compat.ss` -- compatibility procedures and syntax

- `compile.ss` -- bytecode compilation

- `contract.ss` -- programming by contract

- `date.ss` -- date-processing procedures

- `deflate.ss` -- `gzip`

- `defmacro.ss` -- `define-macro` and `defmacro`

- `etc.ss` -- semi-standard procedures and syntax

- `file.ss` -- file-processing procedures

- `include.ss` -- textual source inclusion

- `inflate.ss` -- `gunzip`

- `list.ss` -- list-processing procedures

- `match.ss` -- pattern matching (backwards compatible library)

- `math.ss` -- arithmetic procedures and constants

- `pconvert.ss` -- print values as expressions

- `pregexp.ss` - Perl-style regular expressions

- `pretty.ss` -- pretty-printer

- `restart.ss` -- stand-alone MzScheme emulator

- `sendevent.ss` -- AppleEvents

- `shared.ss` -- graph constructor syntax

- `spidey.ss` -- MrSpidey annotation syntax

- `string.ss` -- string-processing procedures

- `thread.ss` -- thread utilities

- `trace.ss` -- function tracing

- `traceld.ss` -- file-load tracing

- `transcr.ss` -- transcripts

- `unit.ss` -- component system

- `unitsig.ss` -- component system with signatures