minor tweak to contract library

svn: r4092
This commit is contained in:
Robby Findler 2006-08-18 21:53:54 +00:00
parent d98140e347
commit eefb6a8c87

View File

@ -261,11 +261,10 @@
;; ;;
(define (flat-proj ctc) (define (flat-proj ctc)
(let ([predicate ((flat-get ctc) ctc)] (let ([pred? ((flat-get ctc) ctc)])
[name ((name-get ctc) ctc)])
(λ (pos neg src-info orig-str) (λ (pos neg src-info orig-str)
(λ (val) (λ (val)
(if (predicate val) (if (pred? val)
val val
(raise-contract-error (raise-contract-error
val val
@ -273,7 +272,7 @@
pos pos
orig-str orig-str
"expected <~a>, given: ~e" "expected <~a>, given: ~e"
name ((name-get ctc) ctc)
val)))))) val))))))
(define (double-any-curried-proj ctc) double-any-curred-proj2) (define (double-any-curried-proj ctc) double-any-curred-proj2)