bound-vars   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/pattern.xtm

Implementation

;; find bound (defined) variables in expr
(define bound-vars
  (lambda (expr . args)
    (cond ((symbol? expr) (if (defined? expr) expr '()))
          ((atom? expr) '())
          ((list? expr) (flatten (map bound-vars expr)))
          (else (error)))))


Back to Index