#
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

- `cm-accomplice.ss` -- compilation support hook syntax transformers

- `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`

- `integer-set.ss` -- sets of exact integers

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

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

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

- `md5.ss` -- MD5 message-digest algorithm

- `os.ss` -- system utilities

- `package.ss` -- local-definition scope control

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

- `pconvert-prop.ss` -- property to adjust printed form

- `plt-match.ss` -- pattern matching (improved syntax for patterns)

- `port.ss` -- port utilities

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

- `pretty.ss` -- pretty-printer

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

- `sendevent.ss` -- AppleEvents

- `serialize.ss` -- serialization of data

- `shared.ss` -- graph constructor syntax

- `spidey.ss` -- MrSpidey annotation syntax

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

- `struct.ss` -- structure unilities

- `stxparam.ss` -- support for parameter-like syntax bindings

- `surrogate.ss` -- a proxy-like design pattern

- `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