updating previous commit to include using bound=? to exlude literals from extracted pattern vars

This commit is contained in:
Alex Shinn 2017-07-22 20:11:04 +09:00
parent e3678edbdc
commit 8f52f457d6

View file

@ -829,7 +829,7 @@
(define (all-vars x dim) (define (all-vars x dim)
(let lp ((x x) (dim dim) (vars '())) (let lp ((x x) (dim dim) (vars '()))
(cond ((identifier? x) (cond ((identifier? x)
(if (or (any (lambda (lit) (compare x lit)) lits) (if (or (memq x lits)
(compare x _underscore)) (compare x _underscore))
vars vars
(cons (cons x dim) vars))) (cons (cons x dim) vars)))