original commit: 60cf32b7a737466614fc3b6bc6f9ef7d693899cc
This commit is contained in:
Robby Findler 2002-04-04 18:50:01 +00:00
parent 0efacd79b4
commit 0f16392602

View File

@ -504,7 +504,7 @@
false? any?
union symbols
subclass?/c implementation?/c is-a?/c
listof vectorof
listof vectorof cons/p
mixin-contract make-mixin-contract/<%> make-mixin-contract/%)
(define-syntax (name stx)
@ -567,11 +567,17 @@
(andmap p v)))))
(define (vectorof p)
(name vectorof
(name vectorof
(lambda (v)
(and (vector? v)
(andmap p (vector->list v))))))
(define (cons/p hdp tlp)
(lambda (x)
(and (pair? x)
(hdp (car x))
(tlp (cdr x)))))
(define mixin-contract
(class?
. ->d .