chickadee » srfi-101

SRFI-101

Chicken port of SRFI 101.

Documentation

SRFI 101 describes a functional replacement representation for the Scheme list concept. The implementation here is based on the reference implementation. Because the SRFI uses identifiers that are the same as standard R5RS identifiers bound in the scheme module, two modules are provided.

Usage

(import functional-lists)

In this module, all the identifiers of SRFI 101 are exported with the ra: prefix. It is suitable for applications that use both random-access pairs and standard Scheme pairs.

(import srfi-101)

In this module, all but one of the identifiers of SRFI 101 are exported without a prefix, which overrides the standard identifiers in the scheme module. The exception is quote, which is exported as ra:quote. If the standard procedures are to be used, they must be imported with a prefix such as r5:. This module is suitable for applications that use random-access pairs only. Note however that argument lists are still R5RS lists, which means that some or all of the standard procedures must be imported if procedures with variable numbers of arguments are to be included.

Printing

If either module is loaded, a record printer is provided which causes random-access pairs and lists to be output in the same way as R5RS pairs and lists. No provision for input is made.

Requirements

srfi-1 srfi-69 vector-lib

Bugs and Limitations

Author

David Van Horn Kon Lovett

Version history

0.0.3
Initial CHICKEN 5 release.

License

See the source.