more mzlib scribbling
svn: r8552 original commit: 15304f587024343e50fb72b6baed849459d76b6b
This commit is contained in:
parent
b047cf8e64
commit
5f53e41e97
|
@ -21,7 +21,11 @@
|
||||||
|
|
||||||
filter
|
filter
|
||||||
|
|
||||||
sort))
|
sort)
|
||||||
|
(only scheme/list
|
||||||
|
cons?
|
||||||
|
empty?
|
||||||
|
empty))
|
||||||
|
|
||||||
(provide first
|
(provide first
|
||||||
second
|
second
|
||||||
|
@ -112,9 +116,5 @@
|
||||||
(if (pair? x)
|
(if (pair? x)
|
||||||
(loop x (cdr x))
|
(loop x (cdr x))
|
||||||
l))
|
l))
|
||||||
(raise-type-error 'last-pair "pair" l)))
|
(raise-type-error 'last-pair "pair" l))))
|
||||||
|
|
||||||
(define cons? (lambda (x) (pair? x)))
|
|
||||||
(define empty? (lambda (x) (null? x)))
|
|
||||||
(define empty '()))
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user