This commit is contained in:
Robby Findler 2015-12-28 22:17:39 -06:00
parent f7465f81f1
commit a44ce40b56
2 changed files with 12 additions and 1 deletions

View File

@ -667,6 +667,17 @@
(λ (s l) l)))
ele))
(test #t zero?
(let ()
(define-custom-set-types set2 equal? equal-hash-code)
(set-first
(set-add (chaperone-hash-set
(make-immutable-set2)
(λ (a b) b)
(λ (a b) b)
(λ (a b) b))
0))))
(let-values ([(impersonator-prop:p has-impersonator-prop:p? get-impersonator-prop:p)
(make-impersonator-property 'p)])
(let ([s (chaperone-hash-set (set) (λ (s l) l) (λ (s l) l) (λ (s l) l) impersonator-prop:p 11)])

View File

@ -403,7 +403,7 @@
(values (rewrap a) b))
(λ (hash key val)
(define-values (a b)
(c/i-hash-set-hash-set-proc hash key (custom-elem-contents key)))
(c/i-hash-set-hash-set-proc hash (custom-elem-contents key) val))
(values (rewrap a) b))
(λ (hash key)
(rewrap (c/i-hash-set-hash-remove-proc hash (custom-elem-contents key))))