2017-06-13 29 views

回答

0

謂詞可以作爲合同的,因此:

(define (non-empty-hash? x) 
    (and (hash? x) 
     (not (hash-empty? x)))) 

然後你可以使用non-empty-hash?爲您的合同。