We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
define-values-values-to-define
1 parent e02c067 commit 8ed0ce0Copy full SHA for 8ed0ce0
typed-racket-lib/typed-racket/types/printer.rkt
@@ -316,9 +316,8 @@
316
valid-names))
317
;; some types in the union may not be coverable by the candidates
318
;; (e.g. type variables, etc.)
319
- (define-values (uncoverable coverable)
320
- (values (apply set-subtract elems (map cdr candidates))
321
- (set-intersect elems (apply set-union null (map cdr candidates)))))
+ (define uncoverable (apply set-subtract elems (map cdr candidates)))
+ (define coverable (set-intersect elems (apply set-union null (map cdr candidates))))
322
;; set cover, greedy algorithm, ~lg n approximation
323
(let loop ([to-cover coverable]
324
[candidates candidates]
0 commit comments