mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
updating previous commit to include using bound=? to exlude literals from extracted pattern vars
This commit is contained in:
parent
e3678edbdc
commit
8f52f457d6
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue