This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

R6RS List Utilities library


Attached is an implementation of (rnrs lists (6)) as described here:
http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-4.html

Several of the functions are adapted from the SRFI-1 implementation, but I reproduced them in kawa.lib.rnrs.lists because I didn't like the idea of a "standard" library implementation having a SRFI as a dependency. It seems to me like if either should depend on the other, the SRFI should depend on the standard library.

The file goes at kawa/lib/rnrs/lists.scm, and is used with "(import (rnrs lists))".

To build with ant, patch build.xml like so:

Index: build.xml
===================================================================
--- build.xml	(revision 6876)
+++ build.xml	(working copy)
@@ -459,6 +459,7 @@
         <include name="rnrs/sorting.scm"/>
         <include name="rnrs/unicode.scm"/>
         <include name="rnrs/programs.scm"/>
+        <include name="rnrs/lists.scm"/>
       </fileset>

<target name="lib-scm-classes"


Also attached is a test suite based upon the examples in the R6RS document.


-Jamie

--
Jamison Hope
The PTR Group
www.theptrgroup.com


Attachment: lists.scm
Description: Binary data

Attachment: test-lists.scm
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]