comments on unstable/set
This commit is contained in:
parent
ac8ca8e193
commit
927fae2937
|
@ -18,12 +18,17 @@
|
|||
;; into "racket/set.rkt", then it could be even faster by using the
|
||||
;; representation directly.)
|
||||
|
||||
;; Ryan: Sets implement prop:equal+hash, so isn't this just 'equal?'?
|
||||
|
||||
(define (proper-subset? one two)
|
||||
(and (subset? one two)
|
||||
(not (subset? two one))))
|
||||
;; Eli: Same comment here -- both re using `set-subtract', and using the
|
||||
;; count first.
|
||||
|
||||
;; Ryan: better yet:
|
||||
;; (and (subset? one two) (not (= (set-count one) (set-count two))))
|
||||
|
||||
(define (set-exclusive-or s0 . rest)
|
||||
(for/fold ([s s0]) ([s* (in-list rest)])
|
||||
(define-values [ big small ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user