fix dict-empty?

closes PR 14075
This commit is contained in:
Ryan Culpepper 2013-10-05 13:16:32 -04:00
parent 7dd3b82d1b
commit 383c363c68
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@
(loop))))
(define (fallback-empty? d)
(if (dict-iterate-first d) #t #f))
(not (dict-iterate-first d)))
(define (fallback-count d)
(let loop ([n 0] [i (dict-iterate-first d)])

View File

@ -8,7 +8,7 @@
;; No-contract version.
(define-struct id-table (hash phase))
;; where hash maps symbol => (listof (cons identifier value))
;; where hash maps symbol => (nonempty-listof (cons identifier value))
;; phase is a phase-level (integer or #f)
(define (make-id-table-hash-code identifier->symbol)