* added (ikarus lists)

* moved $memq to (ikarus lists)
This commit is contained in:
Abdulaziz Ghuloum 2007-05-05 05:22:15 -04:00
parent 7f02ac9da7
commit 67561089ae
4 changed files with 16 additions and 7 deletions

Binary file not shown.

View File

@ -61,13 +61,6 @@
(primitive-set! x v)
(set-top-level-value! x v)))
(primitive-set! '$memq
(lambda (x ls)
(let f ([x x] [ls ls])
(and (pair? ls)
(if (eq? x (car ls))
ls
(f x (cdr ls)))))))

15
src/ikarus.lists.ss Normal file
View File

@ -0,0 +1,15 @@
(library (ikarus lists)
(export $memq)
(import (ikarus))
(define $memq
(lambda (x ls)
(let f ([x x] [ls ls])
(and (pair? ls)
(if (eq? x (car ls))
ls
(f x (cdr ls)))))))
)

View File

@ -27,6 +27,7 @@
"ikarus.collect.ss"
"ikarus.predicates.ss"
"ikarus.pairs.ss"
"ikarus.lists.ss"
"ikarus.fixnums.ss"
"ikarus.chars.ss"
"ikarus.records.ss"