Closed dbp closed 9 months ago
Do you have a more complete example of this behavior? This works for me:
(define-contract (Equal x) (lambda (y) (= x y)))
(: f (-> (Equal 1) (Equal 1)))
(define (f x) x)
(f 1)
Oh, it was my mistake; I had (check (lambda ...))
. Sorry!
(define Foo (lambda (x) ...)
works, but(define (Foo x) (lambda (y) ...))
errors withliteral clause must occur within Flat
; obviously wrapping thelambda
withFlat
works, but would be nice to have the shorthand.